update example

This commit is contained in:
syumai 2023-04-30 11:04:28 +09:00
parent c3ffe35174
commit ea2393e691

View File

@ -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 {