fix: point eBay refresh cron at public action

This commit is contained in:
DMleadgen 2026-04-10 16:17:35 -06:00
parent bcc39664de
commit e2953a382b
Signed by: matt
GPG key ID: C2720CF8CD701894

View file

@ -1,12 +1,12 @@
import { cronJobs } from "convex/server" import { cronJobs } from "convex/server"
import { internal } from "./_generated/api" import { api } from "./_generated/api"
const crons = cronJobs() const crons = cronJobs()
crons.interval( crons.interval(
"ebay-manual-parts-refresh", "ebay-manual-parts-refresh",
{ hours: 24 }, { hours: 24 },
internal.ebay.refreshCache, api.ebay.refreshCache,
{ reason: "cron" } { reason: "cron" }
) )