aboutsummaryrefslogtreecommitdiff
path: root/source/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'source/index.js')
-rw-r--r--source/index.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/index.js b/source/index.js
index b72fc71..2fbb0d5 100644
--- a/source/index.js
+++ b/source/index.js
@@ -99,6 +99,20 @@ export default {
async email(message, environment, context) {
message.forward("alex@zue.dev");
},
+
+ /*
+ Scheduled event handler, this function will be called whenever a scheduled event is triggered.
+ The function will perform a task and return a response based on the task outcome.
+
+ @param {Event} event - the incoming event object
+ @param {Environment} environment - the environment object
+ @param {Context} context - the context object
+
+ @returns {void}
+ */
+ async scheduled(event, environment, context) {
+ console.log("Scheduled event triggered!");
+ },
};
/*