Skip to content

Commit

Permalink
Added scheduled handler
Browse files Browse the repository at this point in the history
  • Loading branch information
L480 committed Jan 26, 2024
1 parent dcfaffd commit 4962151
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions workers/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down

0 comments on commit 4962151

Please sign in to comment.