mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-01-29 01:28:59 -05:00
fix: email sending when not signed in
This commit is contained in:
parent
99492c2ecc
commit
32eaee4236
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue