0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-29 19:52:43 +00:00

Apply review comments

Switched from raw promises to async/await.
Outlined error handling function to reduce amount of nested code.
Added comment about the new file intent.
This commit is contained in:
Alexey Sachkov
2022-01-10 19:25:36 +03:00
parent 6e04535eff
commit e84cd4fe8b
2 changed files with 20 additions and 21 deletions

View File

@@ -79,7 +79,6 @@ const config = require('nconf')
// DB
const DB = require('./server/db.js');
// FIXME: consider implementing error hanlding for a Promise returned by connect
DB.connect(config);
//Account Middleware