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:
parent
15b7b9ac1e
commit
e6c44668c4
@ -9,8 +9,13 @@ import { DatabaseHelper } from "./helpers/DatabaseHelper";
|
||||
|
||||
console.info("Comunic API v6\t@author Pierre HUBERT\t2019-" + new Date().getFullYear());
|
||||
|
||||
async function init() {
|
||||
|
||||
console.info("Load configuration...");
|
||||
ConfigurationHelper.loadConf("config.json");
|
||||
|
||||
console.info("Connect to database");
|
||||
DatabaseHelper.connect();
|
||||
await DatabaseHelper.connect();
|
||||
|
||||
}
|
||||
init();
|
Loading…
Reference in New Issue
Block a user