Skip to content

Commit ac85c48

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Fix cron docs (#31786)
GitOrigin-RevId: b3cad85cc65ef563f23b47cae1bcd797cfe358f8
1 parent ca17912 commit ac85c48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server/cron.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export class Crons {
268268
}
269269

270270
/**
271-
* Schedule a mutation or action to run on an hourly basis.
271+
* Schedule a mutation or action to run at some interval.
272272
*
273273
* ```js
274274
* crons.interval("Clear presence data", {seconds: 30}, api.presence.clear);
@@ -310,13 +310,12 @@ export class Crons {
310310
}
311311

312312
/**
313-
* Schedule a mutation or action to run on a daily basis.
313+
* Schedule a mutation or action to run on an hourly basis.
314314
*
315315
* ```js
316-
* crons.daily(
316+
* crons.hourly(
317317
* "Reset high scores",
318318
* {
319-
* hourUTC: 17, // (9:30am Pacific/10:30am Daylight Savings Pacific)
320319
* minuteUTC: 30,
321320
* },
322321
* api.scores.reset
@@ -387,6 +386,7 @@ export class Crons {
387386
* crons.weekly(
388387
* "Weekly re-engagement email",
389388
* {
389+
* dayOfWeek: "Tuesday",
390390
* hourUTC: 17, // (9:30am Pacific/10:30am Daylight Savings Pacific)
391391
* minuteUTC: 30,
392392
* },

0 commit comments

Comments
 (0)