mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-07-04 08:20:13 +02:00
fix: email sending when not signed in
This commit is contained in:
parent
99492c2ecc
commit
32eaee4236
|
@ -23,10 +23,10 @@ export class EmailService {
|
||||||
throw new InternalServerErrorException("Email service disabled");
|
throw new InternalServerErrorException("Email service disabled");
|
||||||
|
|
||||||
const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`;
|
const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`;
|
||||||
const creatorIdentifier =
|
const creatorIdentifier = creator ?
|
||||||
creator.firstName && creator.lastName
|
creator.firstName && creator.lastName
|
||||||
? `${creator.firstName} ${creator.lastName}`
|
? `${creator.firstName} ${creator.lastName}`
|
||||||
: creator.email;
|
: creator.email : "A Pingvin Share user";
|
||||||
|
|
||||||
await this.transporter.sendMail({
|
await this.transporter.sendMail({
|
||||||
from: `"Pingvin Share" <${this.config.get("SMTP_EMAIL")}>`,
|
from: `"Pingvin Share" <${this.config.get("SMTP_EMAIL")}>`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user