cleaned up server formatting
This commit is contained in:
parent
8118d5b196
commit
968880c256
1 changed files with 4 additions and 7 deletions
11
index.js
11
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}`);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue