tango-app-api-store-builder 1.0.4 → 1.0.5

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.4",
3
+ "version": "1.0.5",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -32,7 +32,7 @@
32
32
  "path": "^0.12.7",
33
33
  "selenium-webdriver": "^4.31.0",
34
34
  "sharp": "^0.34.1",
35
- "tango-api-schema": "^2.4.18",
35
+ "tango-api-schema": "^2.4.31",
36
36
  "tango-app-api-middleware": "3.1.48",
37
37
  "url": "^0.11.4",
38
38
  "winston": "^3.17.0",
@@ -3572,7 +3572,7 @@ export async function storeFixturesTaskv2( req, res ) {
3572
3572
 
3573
3573
  if ( !planograms?.length ) return res.sendError( 'No data found', 204 );
3574
3574
 
3575
-
3575
+ const currentDate = new Date( dayjs().format( 'YYYY-MM-DD' ) );
3576
3576
  const storeLayout = await Promise.all(
3577
3577
  planograms.map( async ( planogram ) => {
3578
3578
  const floors = await storeBuilderService.find(
@@ -3640,7 +3640,7 @@ export async function storeFixturesTaskv2( req, res ) {
3640
3640
  },
3641
3641
  },
3642
3642
  {
3643
- $sort: { $_id: -1 },
3643
+ $sort: { _id: -1 },
3644
3644
  },
3645
3645
  {
3646
3646
  $limit: 1,
@@ -3771,7 +3771,7 @@ export async function storeFixturesTaskv2( req, res ) {
3771
3771
  },
3772
3772
  },
3773
3773
  {
3774
- $sort: { $_id: -1 },
3774
+ $sort: { _id: -1 },
3775
3775
  },
3776
3776
  {
3777
3777
  $limit: 1,