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 {