Skip to content

Commit

Permalink
remove disabled eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashchoudhary07 committed Nov 3, 2023
1 parent 3515c2e commit f054f7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ const EVERY_4_HOURS = '0 */4 * * *';
const EVERY_6_HOURS = '0 */6 * * *';

export default {
// We need to keep all 3 parameters in this format even if they are not used as as cloudflare workers need them to be present So we are disabling eslint rule of no-unused-vars
// for more details read here: https://community.cloudflare.com/t/waituntil-is-not-a-function-when-using-workers-with-modules/375781/4
// eslint-disable-next-line no-unused-vars
async scheduled(req: ScheduledController, env: env, ctx: ExecutionContext) {
switch (req.cron) {
case EVERY_4_HOURS:
Expand Down

0 comments on commit f054f7d

Please sign in to comment.