Skip to content

Commit 8f9e918

Browse files
committed
Bind env
1 parent a7751d0 commit 8f9e918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/worker.ts

Lines changed: 1 addition & 1 deletion
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)