Skip to content

Commit 073215b

Browse files
authored
Fixed a missing parameter error in the EventBridgeHandler example code on the Scheduled Functions documentation page (#7940)
1 parent 19e99c4 commit 073215b

File tree

1 file changed

+1
-1
lines changed
  • src/pages/[platform]/build-a-backend/functions/scheduling-functions

1 file changed

+1
-1
lines changed

src/pages/[platform]/build-a-backend/functions/scheduling-functions/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Their handlers can be typed using the `EventBridgeHandler` type:
5151
```ts title="amplify/jobs/weekly-digest/handler.ts"
5252
import type { EventBridgeHandler } from "aws-lambda";
5353

54-
export const handler: EventBridgeHandler = async (event) => {
54+
export const handler: EventBridgeHandler<"Scheduled Event", null, void> = async (event) => {
5555
console.log("event", JSON.stringify(event, null, 2))
5656
}
5757
```

0 commit comments

Comments
 (0)