fix(gatekeeper): fix crontab
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user