This commit is contained in:
aki-0421 2024-01-17 17:52:16 +09:00
parent e5294f4cd2
commit 46459b445a
No known key found for this signature in database
GPG Key ID: 64A8CF6D437D166A

View File

@ -7,6 +7,7 @@ import (
"syscall/js"
"time"
"github.com/syumai/workers/internal/cfcontext"
"github.com/syumai/workers/internal/jsutil"
)
@ -41,7 +42,7 @@ func ScheduleTask(task Task) {
}
func runScheduler(eventObj js.Value, runtimeCtxObj js.Value) error {
ctx := cfcontext.New(context.Background(), runtimeCtxObj)
ctx := cfcontext.New(context.Background(), runtimeCtxObj, nil)
event, err := toEvent(eventObj)
if err != nil {
return err