fix: send "invitation accepted" email to inviter (#331)

The email says "${invitedUserName} has accepted your invitation ...", so it makes more sense to send it to the inviter instead of the invitee.
This commit is contained in:
ceroma
2024-09-19 18:19:04 -03:00
committed by GitHub
parent e96330afbf
commit 2ae3816324

View File

@ -248,7 +248,7 @@ export class WorkspaceInvitationService {
}); });
await this.mailService.sendToQueue({ await this.mailService.sendToQueue({
to: invitation.email, to: invitedByUser.email,
subject: `${newUser.name} has accepted your Docmost invite`, subject: `${newUser.name} has accepted your Docmost invite`,
template: emailTemplate, template: emailTemplate,
}); });