From ea2393e691e3f744a4082a3d218a68a891bfa00d Mon Sep 17 00:00:00 2001 From: syumai Date: Sun, 30 Apr 2023 11:04:28 +0900 Subject: [PATCH] update example --- examples/cron/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cron/main.go b/examples/cron/main.go index 1931619..0b01bf5 100644 --- a/examples/cron/main.go +++ b/examples/cron/main.go @@ -9,7 +9,7 @@ import ( "github.com/syumai/workers/cloudflare/cron" ) -func task(ctx context.Context, event cron.Event) error { +func task(ctx context.Context, event *cron.Event) error { fmt.Println(cloudflare.Getenv(ctx, "HELLO")) if event.ScheduledTime.Minute()%2 == 0 {