Skip to content

Commit

Permalink
fix(scraper): Fixed cron not starting
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Nov 13, 2020
1 parent 5962610 commit 4e0c829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/scraper/src/scraper.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ScraperModule implements OnApplicationBootstrap {

public onApplicationBootstrap(): void {
const job = new CronJob(this.configService.get('CRON_TIME'), () => {
this.scrapeConfigs
this.scrapeConfigs()
})

this.schedulerRegistry.addCronJob(ScraperModule.JOB_NAME, job)
Expand Down

0 comments on commit 4e0c829

Please sign in to comment.