🛂 Reset isQuarantined on the first of month

This commit is contained in:
Baptiste Arnaud
2023-04-23 21:07:46 +02:00
parent c6983c952c
commit 3fbd044d92
8 changed files with 54 additions and 239 deletions

View File

@@ -3,11 +3,8 @@ import fs from 'fs'
import path from 'path'
import {
AlmostReachedChatsLimitEmail,
AlmostReachedStorageLimitEmail,
DefaultBotNotificationEmail,
GuestInvitationEmail,
ReachedChatsLimitEmail,
ReachedStorageLimitEmail,
WorkspaceMemberInvitation,
} from './emails'
import { MagicLinkEmail } from './emails/MagicLinkEmail'
@@ -47,38 +44,12 @@ const createHtmlFile = () => {
path.resolve(__dirname, 'dist', 'almostReachedChatsLimit.html'),
render(
<AlmostReachedChatsLimitEmail
usagePercent={86}
url={'https://app.typebot.io'}
chatsLimit={2000}
/>
).html
)
fs.writeFileSync(
path.resolve(__dirname, 'dist', 'almostReachedStorageLimit.html'),
render(
<AlmostReachedStorageLimitEmail
url={'https://app.typebot.io'}
storageLimit={4}
/>
).html
)
fs.writeFileSync(
path.resolve(__dirname, 'dist', 'reachedChatsLimit.html'),
render(
<ReachedChatsLimitEmail
url={'https://app.typebot.io'}
chatsLimit={10000}
/>
).html
)
fs.writeFileSync(
path.resolve(__dirname, 'dist', 'reachedStorageLimit.html'),
render(
<ReachedStorageLimitEmail
url={'https://app.typebot.io'}
storageLimit={8}
/>
).html
)
fs.writeFileSync(
path.resolve(__dirname, 'dist', 'defaultBotNotification.html'),
render(