Skip to content

Commit 28e67c4

Browse files
pckilgorethomasgauvin
authored andcommitted
fix: scheduled.mdx (#24287)
1 parent a5dcc67 commit 28e67c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/workers/runtime-apis/handlers/scheduled.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ async def on_scheduled(controller, env, ctx):
7474

7575
- `controller.type` string
7676

77-
- The type of event. This will always return `"scheduled"`.
77+
- The type of controller. This will always return `"scheduled"`.
7878

7979
- `controller.scheduledTime` number
8080

81-
- The time the `ScheduledEvent` was scheduled to be executed in milliseconds since January 1, 1970, UTC. It can be parsed as <code>new Date(event.scheduledTime)</code>.
81+
- The time the `ScheduledEvent` was scheduled to be executed in milliseconds since January 1, 1970, UTC. It can be parsed as <code>new Date(controller.scheduledTime)</code>.
8282

8383
- `env` object
8484

0 commit comments

Comments
 (0)