aboutsummaryrefslogtreecommitdiff
path: root/server.js
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@gmail.com>2022-11-03 17:45:27 +0200
committerJoel Kronqvist <work.joelkronqvist@gmail.com>2022-11-03 17:45:27 +0200
commit4a9dca9ffccb087135c6e2d0eebae45cd567036d (patch)
tree4b4510fd8d25d657fb1927660ebbeec936281d67 /server.js
parent5f74d40fa736745651514853afdca3ed44e5ae74 (diff)
downloadLYLLRuoka-4a9dca9ffccb087135c6e2d0eebae45cd567036d.tar.gz
LYLLRuoka-4a9dca9ffccb087135c6e2d0eebae45cd567036d.zip
Corrected typo, added 1h30min waiting time before the foods are updated
You never know if the city's servers don't get updated instantly, so it might not be a good idea to ask for the foods at (at worst) 1 ms after 00:00 at monday.
Diffstat (limited to 'server.js')
-rw-r--r--server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.js b/server.js
index c496b14..905fe63 100644
--- a/server.js
+++ b/server.js
@@ -50,7 +50,7 @@ async function init()
// ...shifts and classes
await updateDB.update(SQLDB, "../Updation/shifts.txt", "../Updation/vanhalops.csv", "../Updation/uusilops.csv");
// ...foods
- run_at_monday_mornings(() => food.build(SQLDB));
+ dateFuncs.run_at_monday_mornings(() => food.build(SQLDB));
if ((new Date()).getDay() !== 1) // update if it's not monday. if it's monday, it has already been run by the scheduler above.
await food.build(SQLDB);
// server code