tango-app-api-store-builder 1.0.0-beta-73 → 1.0.0-beta-74
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
|
@@ -1072,7 +1072,10 @@ export async function fixtureShelfProductv1( req, res ) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
} ) );
|
|
1074
1074
|
const vmMap = new Map( vms.map( ( vm ) => [ vm._id.toString(), vm.toObject() ] ) );
|
|
1075
|
-
const vmDetails = vmMappings.map( ( mapping ) =>
|
|
1075
|
+
const vmDetails = vmMappings.map( ( mapping ) => ( {
|
|
1076
|
+
...vmMap.get( mapping.productId.toString() ),
|
|
1077
|
+
_id: mapping._id,
|
|
1078
|
+
} ) );
|
|
1076
1079
|
|
|
1077
1080
|
if ( fixture.toObject().productResolutionLevel === 'L1' ) {
|
|
1078
1081
|
const productMappings = await planoMappingService.find( { fixtureId: new mongoose.Types.ObjectId( fixtureId ), type: 'product' } );
|