import { cronJobs } from "convex/server"
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,
  {}
)

export default crons
