1
0
mirror of https://gitlab.com/comunic/comunicapiv2 synced 2024-11-22 05:19:22 +00:00

Turn main function into async fashion

This commit is contained in:
Pierre HUBERT 2019-11-21 17:37:30 +01:00
parent 15b7b9ac1e
commit e6c44668c4

View File

@ -9,8 +9,13 @@ import { DatabaseHelper } from "./helpers/DatabaseHelper";
console.info("Comunic API v6\t@author Pierre HUBERT\t2019-" + new Date().getFullYear());
console.info("Load configuration...");
ConfigurationHelper.loadConf("config.json");
async function init() {
console.info("Load configuration...");
ConfigurationHelper.loadConf("config.json");
console.info("Connect to database");
DatabaseHelper.connect();
console.info("Connect to database");
await DatabaseHelper.connect();
}
init();