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