2
0

🐛 (limits) Fix usage limits email emojis

This commit is contained in:
Baptiste Arnaud
2022-09-20 21:24:56 +02:00
committed by Baptiste Arnaud
parent 6384a3adae
commit 1063429275
6 changed files with 7 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -135,7 +135,7 @@ const sendAlmostReachChatsLimitEmail = async ({
await sendEmailNotification({
to: members.map((member) => member.user.email).filter(isDefined),
subject: "You've been invited to collaborate 🤝",
subject: "You're close to your chats limit",
html: almostReachedChatsLimitEmail({
readableChatsLimit,
readableResetDate,
@ -169,7 +169,7 @@ const sendReachedAlertEmail = async ({
.join(' ')
await sendEmailNotification({
to: members.map((member) => member.user.email).filter(isDefined),
subject: "You've been invited to collaborate 🤝",
subject: "You've hit your monthly chats limit",
html: reachedSChatsLimitEmail({
readableChatsLimit,
readableResetDate,

View File

@ -12,7 +12,7 @@ export const sendEmailNotification = (props: Omit<SendMailOptions, 'from'>) => {
})
return transporter.sendMail({
from: env('SMTP_FROM'),
from: process.env.SMTP_FROM ?? env('SMTP_FROM'),
...props,
})
}