mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
update example
This commit is contained in:
parent
c3ffe35174
commit
ea2393e691
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user