From 328177c9ffa6253d49a37c8159b1aa59b21b9248 Mon Sep 17 00:00:00 2001 From: lingdocs <71590811+lingdocs@users.noreply.github.com> Date: Sun, 22 Aug 2021 23:59:11 +0400 Subject: [PATCH] fix cron job not starting --- website/src/App.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/src/App.tsx b/website/src/App.tsx index 0821331..cdd1982 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -130,6 +130,7 @@ class App extends Component { ReactGA.pageview(window.location.pathname + window.location.search); } dictionary.initialize().then((r) => { + this.networkCronJob.stop(); this.setState({ dictionaryStatus: "ready", dictionaryInfo: r.dictionaryInfo, @@ -334,8 +335,8 @@ class App extends Component { } } - private networkCronJob = new CronJob("1/5 * * * *", () => { - // TODO: check for new dictionary (in a seperate cron job - not dependant on the user being signed in) + private networkCronJob = new CronJob("* * * * *", () => { + // TODO: check for new dictionary (in a seperate cron job - not dependant on the user being signed in)\ this.handleLoadUser(); sendSubmissions(); this.handleDictionaryUpdate();