return projectFields in data result
MODIFY
src/storage/mongodb/SiteAreaStorage.ts
src/storage/mongodb/SiteAreaStorage.ts
@@ -316,6 +316,7 @@ export default class SiteAreaStorage {
await Logging.traceEnd(tenantID, MODULE_NAME, 'getSiteAreas', uniqueTimerID, siteAreasMDB);
// Ok
return {
+ projectedFields: projectFields,
count: (siteAreasCountMDB.length > 0 ?
(siteAreasCountMDB[0].count === Constants.DB_RECORD_COUNT_CEIL ? -1 : siteAreasCountMDB[0].count) : 0),
result: siteAreas

MODIFY
src/storage/mongodb/SiteStorage.ts
src/storage/mongodb/SiteStorage.ts
@@ -490,6 +490,7 @@ export default class SiteStorage {
// Debug
await Logging.traceEnd(tenantID, MODULE_NAME, 'getSites', uniqueTimerID, sites);
return {
+ projectedFields: projectFields,
count: (sitesCountMDB.length > 0 ?
(sitesCountMDB[0].count === Constants.DB_RECORD_COUNT_CEIL ? -1 : sitesCountMDB[0].count) : 0),
result: sites

return projectFields in data result