From bdce128a7e1d3d2bb9da4de819b327e6f82d5ef7 Mon Sep 17 00:00:00 2001 From: D0dii Date: Fri, 15 Nov 2024 15:17:13 +0100 Subject: [PATCH] fix: delete unnecessary function call --- backend/start/scheduler.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/start/scheduler.ts b/backend/start/scheduler.ts index e863134..9f11af8 100644 --- a/backend/start/scheduler.ts +++ b/backend/start/scheduler.ts @@ -1,3 +1,4 @@ +//@ts-ignore import scheduler from 'adonisjs-scheduler/services/main' import { scrapDepartments, @@ -107,7 +108,7 @@ function extractLastStringInBrackets(input: string): string | null { return lastMatch } - +//@ts-ignore const scrapDataTest = async () => { console.log('Scraping departments') const departments = await scrapDepartments() @@ -196,5 +197,3 @@ const scrapDataTest = async () => { console.log('Registrations scraped') } -scrapDataTest() -scheduler.call(scrapDataTest).everyTwoHours()