We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c245ea8 commit 75e3e45Copy full SHA for 75e3e45
worker-build/src/js/shim.js
@@ -21,8 +21,10 @@ class Entrypoint extends WorkerEntrypoint {
21
return await imports.scheduled(event, this.env, this.ctx)
22
}
23
24
- async email(message) {
25
- return await imports.email(message, this.env, this.ctx)
+ // For some reason, email events doesn't seem to use WorkerEntrypoint so we get the env and ctx from
+ // from the function itself.
26
+ async email(message, _env, _ctx) {
27
+ return await imports.email(message, _env, _ctx)
28
29
30
0 commit comments