Fixed notif statup
MODIFY
src/start.ts
src/start.ts
@@ -210,14 +210,6 @@ export default class Bootstrap {
private static async startServersListening(): Promise<void> {
try {
- // -------------------------------------------------------------------------
- // Listen to DB changes
- // -------------------------------------------------------------------------
- // Create database notifications
- if (!Bootstrap.storageNotification) {
- Bootstrap.storageNotification = new MongoDBStorageNotification(Bootstrap.storageConfig, Bootstrap.centralRestServer);
- }
- await Bootstrap.storageNotification.start();
// -------------------------------------------------------------------------
// REST Server (Front-End)
// -------------------------------------------------------------------------
@@ -235,6 +227,15 @@ export default class Bootstrap {
}
}
+ // -------------------------------------------------------------------------
+ // Listen to DB changes
+ // -------------------------------------------------------------------------
+ // Create database notifications
+ if (!Bootstrap.storageNotification) {
+ Bootstrap.storageNotification = new MongoDBStorageNotification(Bootstrap.storageConfig, Bootstrap.centralRestServer);
+ }
+ await Bootstrap.storageNotification.start();
+
// -------------------------------------------------------------------------
// Central Server (Charging Stations)
// -------------------------------------------------------------------------

Fixed notif statup