Make tests pass running with postgres

This commit is contained in:
Ajay Ramachandran
2021-03-07 00:21:56 -05:00
parent 3fe7501802
commit 8729796e87
22 changed files with 208 additions and 173 deletions

View File

@@ -3,7 +3,12 @@ import {initDb} from './databases/databases';
import {createServer} from "./app";
import {Logger} from "./utils/logger";
initDb();
createServer(() => {
Logger.info("Server started on port " + config.port + ".");
});
async function init() {
await initDb();
createServer(() => {
Logger.info("Server started on port " + config.port + ".");
});
}
init();