Add missing IDs in LogggingStorage
MODIFY
src/storage/mongodb/LoggingStorage.ts
src/storage/mongodb/LoggingStorage.ts
@@ -60,7 +60,10 @@ export default class LoggingStorage {
userID: logToSave.user ? DatabaseUtils.convertUserToObjectID(logToSave.user) : null,
actionOnUserID: DatabaseUtils.convertUserToObjectID(logToSave.actionOnUser),
level: logToSave.level,
- siteID: logToSave.siteID,
+ chargingStationID: logToSave.chargingStationID,
+ companyID: DatabaseUtils.convertToObjectID(logToSave.companyID),
+ siteID: DatabaseUtils.convertToObjectID(logToSave.siteID),
+ siteAreaID: DatabaseUtils.convertToObjectID(logToSave.siteAreaID),
source: logToSave.source,
host: logToSave.host ? logToSave.host : Utils.getHostname(),
process: logToSave.process ? logToSave.process : (cluster.isWorker ? 'worker ' + cluster.worker.id.toString() : 'master'),

Add missing IDs in LogggingStorage