convex(cron): fornecer objeto de argumentos para action sendHoursUsageAlerts na crons.interval (TS2554)
This commit is contained in:
parent
88b65c3e15
commit
385e0fec11
1 changed files with 6 additions and 1 deletions
|
|
@ -4,6 +4,11 @@ import { api } from "./_generated/api"
|
||||||
const crons = cronJobs()
|
const crons = cronJobs()
|
||||||
|
|
||||||
// Check hourly and the action will gate by America/Sao_Paulo hour
|
// Check hourly and the action will gate by America/Sao_Paulo hour
|
||||||
crons.interval("hours-usage-alerts-hourly", { hours: 1 }, api.alerts_actions.sendHoursUsageAlerts)
|
crons.interval(
|
||||||
|
"hours-usage-alerts-hourly",
|
||||||
|
{ hours: 1 },
|
||||||
|
api.alerts_actions.sendHoursUsageAlerts,
|
||||||
|
{}
|
||||||
|
)
|
||||||
|
|
||||||
export default crons
|
export default crons
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue