From 385e0fec11d57210d43de388e32bd39f2608270d Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Tue, 7 Oct 2025 17:46:56 -0300 Subject: [PATCH] convex(cron): fornecer objeto de argumentos para action sendHoursUsageAlerts na crons.interval (TS2554) --- convex/crons.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/convex/crons.ts b/convex/crons.ts index 38bacdb..7279f87 100644 --- a/convex/crons.ts +++ b/convex/crons.ts @@ -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