From 49621510f51b72508307c476ca3189e7317348fb Mon Sep 17 00:00:00 2001 From: L480 Date: Fri, 26 Jan 2024 03:26:22 +0100 Subject: [PATCH] Added scheduled handler --- workers/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workers/index.js b/workers/index.js index 23f3fc1..20cbc6c 100644 --- a/workers/index.js +++ b/workers/index.js @@ -1,4 +1,7 @@ export default { + async scheduled(event, env, ctx) { + await this.fetch(event, env, ctx); + }, async fetch(request, env, ctx) { const tokenEndpoint = 'https://login.tonies.com/auth/realms/tonies/protocol/openid-connect/token'; const graphqlEndpoint = 'https://api.prod.tcs.toys/v2/graphql';