tango-app-api-store-builder 1.0.0-beta-6 → 1.0.0-beta-7

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-6",
3
+ "version": "1.0.0-beta-7",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -442,7 +442,7 @@ export async function storeList( req, res ) {
442
442
  $match: {
443
443
  $expr: {
444
444
  $and: [
445
- { createdAt: { $gte: dayjs().startOf( 'day' ).format(), $lte: dayjs().endOf( 'day' ).format() } },
445
+ { date: new Date( dayjs().format( 'YYYY-MM-DD' ) ) },
446
446
  { $eq: [ '$fixtureId', '$$id' ] },
447
447
  { $eq: [ '$compliance', 'proper' ] },
448
448
  ],
@@ -581,7 +581,7 @@ export async function fixtureShelfProduct( req, res ) {
581
581
  ...query,
582
582
  ...( [ 'L3', 'L4' ].includes( planoDetails.productResolutionLevel ) ) ? { shelfId: shelf._id } : {},
583
583
  productId: { $in: productIdList },
584
- createdAt: { $gte: dayjs().startOf( 'day' ).format(), $lte: dayjs().endOf( 'day' ).format() },
584
+ date: new Date( dayjs().format( 'YYYY-MM-DD' ) ),
585
585
  };
586
586
  let productComplianceDetails = await planoComplianceService.find( query );
587
587
  let product = [];