From 3a9e4d7502783fff6798a8612378e44708e233f5 Mon Sep 17 00:00:00 2001 From: Carlo Morgenstern Date: Sun, 24 Oct 2021 17:44:54 +0200 Subject: [PATCH] Added init complete log to server --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 99cac18..00e7487 100644 --- a/index.js +++ b/index.js @@ -145,6 +145,6 @@ app.use((error, req, res, next) => { }); app.listen(port, () => { - creator.ensureInit(); console.log(`Listening at http://localhost:${port}`); + creator.ensureInit().then(() => console.log('CardCreator initialization complete')); });