From 4fe90ea3b309bb2af6ec694eaf390e2110cb6fa6 Mon Sep 17 00:00:00 2001
From: Qi <474021214@qq.com>
Date: Thu, 7 Sep 2023 23:36:53 +0800
Subject: [PATCH] fix: wrong content in invitation email (#4258)
---
apps/server/src/modules/auth/mailer/mail.service.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/server/src/modules/auth/mailer/mail.service.ts b/apps/server/src/modules/auth/mailer/mail.service.ts
index 13d753143b..c1b4acd37c 100644
--- a/apps/server/src/modules/auth/mailer/mail.service.ts
+++ b/apps/server/src/modules/auth/mailer/mail.service.ts
@@ -73,7 +73,7 @@ export class MailService {
}`;
const subContent =
- 'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud.Please click here for more information.';
+ 'Currently, AFFiNE Cloud is in the early access stage. Only Early Access Sponsors can register and log in to AFFiNE Cloud. Please click here for more information.';
const html = emailTemplate({
title: 'You are invited!',
@@ -86,7 +86,7 @@ export class MailService {
return this.sendMail({
from: this.config.auth.email.sender,
to,
- subject: `Invitation to workspace`,
+ subject: `${invitationInfo.user.name} invited you to join ${invitationInfo.workspace}`,
html,
attachments: [
{