aboutsummaryrefslogtreecommitdiff
path: root/food.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 /food.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 'food.js')
-rw-r--r--food.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/food.js b/food.js
index 4b9ef74..7a9691d 100644
--- a/food.js
+++ b/food.js
@@ -48,6 +48,8 @@ async function buildFoods(DB)
}
}
await Promise.all(foodInitOperations);
+ console.log("Foods updated.")
+ return 0;
}
function getFoodLink(week)