@ccci/micro-server 1.0.38 → 1.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -87567,11 +87567,11 @@ class DatabaseConnector {
|
|
|
87567
87567
|
const connection = new Sequelize(config);
|
|
87568
87568
|
DatabaseConnector.connection = connection;
|
|
87569
87569
|
connections.push(connection);
|
|
87570
|
+
resolve(connections);
|
|
87570
87571
|
});
|
|
87571
|
-
return connections;
|
|
87572
87572
|
} catch (error) {
|
|
87573
87573
|
Logger.error(error);
|
|
87574
|
-
|
|
87574
|
+
reject(connections);
|
|
87575
87575
|
}
|
|
87576
87576
|
});
|
|
87577
87577
|
}
|
|
@@ -87744,7 +87744,7 @@ class ApplicationServer {
|
|
|
87744
87744
|
Logger.info("Initializing DB Connection...\n");
|
|
87745
87745
|
const db = new DatabaseConnector(process.cwd());
|
|
87746
87746
|
const conn = await DatabaseConnector.init();
|
|
87747
|
-
|
|
87747
|
+
Logger.info("Connecting :>> ", conn);
|
|
87748
87748
|
await db.initializeModels();
|
|
87749
87749
|
ApplicationServer.app.get("/", (req, resp) => {
|
|
87750
87750
|
return resp.sendFile(path3.resolve("index.html"));
|