fix: point eBay refresh cron at public action
This commit is contained in:
parent
bcc39664de
commit
e2953a382b
1 changed files with 2 additions and 2 deletions
|
|
@ -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" }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue