Skip to content

Commit

Permalink
fix: delete unnecessary function call
Browse files Browse the repository at this point in the history
  • Loading branch information
D0dii committed Nov 15, 2024
1 parent 25f016b commit bdce128
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backend/start/scheduler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@ts-ignore
import scheduler from 'adonisjs-scheduler/services/main'
import {
scrapDepartments,
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -196,5 +197,3 @@ const scrapDataTest = async () => {

console.log('Registrations scraped')
}
scrapDataTest()
scheduler.call(scrapDataTest).everyTwoHours()

0 comments on commit bdce128

Please sign in to comment.