🐛 (limits) Fix usage limits email emojis
This commit is contained in:
committed by
Baptiste Arnaud
parent
6384a3adae
commit
1063429275
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
@ -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,
|
||||
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user