convex(cron): fornecer objeto de argumentos para action sendHoursUsageAlerts na crons.interval (TS2554)

This commit is contained in:
Esdras Renan 2025-10-07 17:46:56 -03:00
parent 88b65c3e15
commit 385e0fec11

View file

@ -4,6 +4,11 @@ import { api } from "./_generated/api"
const crons = cronJobs()
// 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