From 968880c256011079a2ac109b8382f12065842a0a Mon Sep 17 00:00:00 2001 From: bill bittner Date: Thu, 17 May 2018 19:01:35 -0700 Subject: [PATCH] cleaned up server formatting --- index.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 32fd784d..7c3ed5ca 100644 --- a/index.js +++ b/index.js @@ -84,15 +84,12 @@ function Server () { const PORT = siteConfig.details.port; // sync sequelize createDatabaseIfNotExists() - getWalletBalance() + .then(() => { + return getWalletBalance(); + }) .then(balance => { logger.info('starting LBC balance:', balance); - }) - .then(() => { - db.sequelize.sync() - }) - // start the server - .then(() => { + db.sequelize.sync(); this.server.listen(PORT, () => { logger.info(`Server is listening on PORT ${PORT}`); });