Skip to content

Commit 1c047ff

Browse files
committed
Merge branch 'main' of github.com:mojavad/workers-sdk
2 parents afe7abf + 8f9e918 commit 1c047ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/worker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default {
3030
try {
3131
input = (await request.json()) as unknown[];
3232
} catch {}
33-
return Response.json(functions[functionName](...input), {
33+
return Response.json(functions[functionName].bind(env)(...input), {
3434
headers: {
3535
"Access-Control-Allow-Origin": "*",
3636
"Access-Control-Allow-Method": "POST",

0 commit comments

Comments
 (0)