Added pushConvertObjectIDToString in getAssets
MODIFY
src/storage/mongodb/AssetStorage.ts
src/storage/mongodb/AssetStorage.ts
@@ -202,6 +202,7 @@ export default class AssetStorage {
// Handle the ID
DatabaseUtils.pushRenameDatabaseID(aggregation);
DatabaseUtils.pushConvertObjectIDToString(aggregation, 'siteAreaID');
+ DatabaseUtils.pushConvertObjectIDToString(aggregation, 'siteArea.siteID');
// Add Created By / Last Changed By
DatabaseUtils.pushCreatedLastChangedInAggregation(tenantID, aggregation);
// Project

Added pushConvertObjectIDToString in getAssets