1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-06-30 06:30:11 +02:00

fix: email sending when not signed in

This commit is contained in:
Elias Schneider 2022-11-13 23:08:25 +01:00
parent 99492c2ecc
commit 32eaee4236

View File

@ -23,10 +23,10 @@ export class EmailService {
throw new InternalServerErrorException("Email service disabled");
const shareUrl = `${this.config.get("APP_URL")}/share/${shareId}`;
const creatorIdentifier =
const creatorIdentifier = creator ?
creator.firstName && creator.lastName
? `${creator.firstName} ${creator.lastName}`
: creator.email;
: creator.email : "A Pingvin Share user";
await this.transporter.sendMail({
from: `"Pingvin Share" <${this.config.get("SMTP_EMAIL")}>`,