aboutsummaryrefslogtreecommitdiff
path: root/update.js
diff options
context:
space:
mode:
authorJoel Kronqvist <work.joelkronqvist@gmail.com>2022-11-03 17:15:40 +0200
committerJoel Kronqvist <work.joelkronqvist@gmail.com>2022-11-03 17:15:40 +0200
commit5f74d40fa736745651514853afdca3ed44e5ae74 (patch)
tree84dba0e9a48ae71fb61fb8134d2b895cac8ed34a /update.js
parentcf1dd1d7bd128bf770159032975bc014497507ca (diff)
downloadLYLLRuoka-5f74d40fa736745651514853afdca3ed44e5ae74.tar.gz
LYLLRuoka-5f74d40fa736745651514853afdca3ed44e5ae74.zip
Made server update foods at monday morning instead of updating them just randomly once a week.
Diffstat (limited to 'update.js')
-rw-r--r--update.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/update.js b/update.js
index c946304..9a0c027 100644
--- a/update.js
+++ b/update.js
@@ -9,7 +9,9 @@ async function buildDB(dbconnection, shiftPath, ...classfiles)
shiftCont = shiftCont.toString("utf-8").replaceAll("\r", ""); // \r because of the \r\n newline on windows which may create problems
await parseClasses(dbconnection, ...classfiles),
+ console.log("Classes updated.");
await parse.build(shiftCont, dbconnection)
+ console.log("Shifts updated.");
return 0;
}