fix(gatekeeper): fix crontab

This commit is contained in:
Gergő Jedlicska
2024-12-17 09:21:21 +01:00
parent 3cbf7a1661
commit 38eeba2d2c
+2 -1
View File
@@ -91,7 +91,8 @@ const scheduleWorkspaceTrialEmails = ({
})
// TODO: make this a daily thing
// const cronExpression = '*/5 * * * * *'
const cronExpression = '0 0 12 * * ?'
// every day at noon
const cronExpression = '0 12 * * *'
return scheduleExecution(cronExpression, 'WorkspaceTrialEmails', async () => {
const getWorkspacesByPlanAge = getWorkspacesByPlanAgeFactory({ db })
const trialValidForDays = 31