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')); });