tango-app-api-store-builder 1.0.0-beta-175 → 1.0.0-beta-176
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/package.json
CHANGED
|
@@ -1107,6 +1107,7 @@ export async function getChildList( req, res ) {
|
|
|
1107
1107
|
fixtureType: 1,
|
|
1108
1108
|
planoId: { $ifNull: [ { $arrayElemAt: [ '$storeFixtureDetails.planoId', 0 ] }, [] ] },
|
|
1109
1109
|
storeList: { $ifNull: [ { $arrayElemAt: [ '$storeFixtureDetails.storeList', 0 ] }, [] ] },
|
|
1110
|
+
updatedAt: 1,
|
|
1110
1111
|
},
|
|
1111
1112
|
},
|
|
1112
1113
|
{
|
|
@@ -1166,6 +1167,7 @@ export async function getChildList( req, res ) {
|
|
|
1166
1167
|
},
|
|
1167
1168
|
},
|
|
1168
1169
|
},
|
|
1170
|
+
updatedAt: 1,
|
|
1169
1171
|
},
|
|
1170
1172
|
},
|
|
1171
1173
|
];
|
|
@@ -1272,6 +1274,12 @@ export async function getTreeList( req, res ) {
|
|
|
1272
1274
|
if ( req?.query?.masterId ) {
|
|
1273
1275
|
fixtureDetails = await Promise.all( fixtureDetails.map( async ( fixt ) => {
|
|
1274
1276
|
let storeFixtureCount = await storeFixtureService.count( { fixtureConfigId: fixt._id } );
|
|
1277
|
+
fixt.vmConfig = await Promise.all( fixt.vmConfig.map( async ( vm ) => {
|
|
1278
|
+
let vmDetails = await vmService.findOne( { _id: vm.vmId }, { _id: 0 } );
|
|
1279
|
+
if ( vmDetails ) {
|
|
1280
|
+
return { ...vm, ...vmDetails.toObject() };
|
|
1281
|
+
}
|
|
1282
|
+
} ) );
|
|
1275
1283
|
return { ...fixt, storeCount: storeFixtureCount };
|
|
1276
1284
|
} ) );
|
|
1277
1285
|
}
|