tango-app-api-store-builder 1.0.0-beta-217 → 1.0.0-beta-218

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-store-builder",
3
- "version": "1.0.0-beta-217",
3
+ "version": "1.0.0-beta-218",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -2853,7 +2853,7 @@ export async function storeFixturesv2( req, res ) {
2853
2853
  let productIdList = productDetails.map( ( ele ) => ele._id );
2854
2854
  let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
2855
2855
  status = status.map( ( ele ) => ele?.compliance );
2856
- const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'imProper' : 'proper' : '';
2856
+ const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
2857
2857
 
2858
2858
  const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
2859
2859
 
@@ -2962,7 +2962,7 @@ export async function storeFixturesv2( req, res ) {
2962
2962
  let productIdList = productDetails.map( ( ele ) => ele._id );
2963
2963
  let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
2964
2964
  status = status.map( ( ele ) => ele?.compliance );
2965
- const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'imProper' : 'proper' : '';
2965
+ const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
2966
2966
 
2967
2967
 
2968
2968
  const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
@@ -3542,7 +3542,7 @@ export async function storeFixturesTaskv2( req, res ) {
3542
3542
  let productIdList = productDetails.map( ( ele ) => ele._id );
3543
3543
  let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
3544
3544
  status = status.map( ( ele ) => ele?.compliance );
3545
- const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'imProper' : 'proper' : '';
3545
+ const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
3546
3546
  const vmCount = await planoMappingService.count( { fixtureId: fixture._id, shelfId: shelf.toObject(), type: 'vm' } );
3547
3547
 
3548
3548
  return {
@@ -3651,7 +3651,7 @@ export async function storeFixturesTaskv2( req, res ) {
3651
3651
  let productIdList = productDetails.map( ( ele ) => ele._id );
3652
3652
  let status = await planoComplianceService.find( { fixtureId: fixture._id, shelfId: shelf.toObject(), planoMappingId: { $in: productIdList } }, { compliance: 1 } );
3653
3653
  status = status.map( ( ele ) => ele?.compliance );
3654
- const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'imProper' : 'proper' : '';
3654
+ const compliance = status.length ? ( status.includes( 'missing' ) || status.includes( 'misplaced' ) ) ? 'improper' : 'proper' : 'improper';
3655
3655
  return {
3656
3656
  ...shelf.toObject(),
3657
3657
  productCount: productDetails.length,