tango-app-api-store-builder 1.0.0-beta-148 → 1.0.0-beta-150
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,7 +1,7 @@
|
|
|
1
1
|
import * as floorService from '../service/storeBuilder.service.js';
|
|
2
2
|
import { logger, insertOpenSearchData } from 'tango-app-api-middleware';
|
|
3
3
|
// import * as storeService from '../service/store.service.js';
|
|
4
|
-
import * as planoService from '../service/planogram.service.js';
|
|
4
|
+
// import * as planoService from '../service/planogram.service.js';
|
|
5
5
|
import * as storeFixtureService from '../service/storeFixture.service.js';
|
|
6
6
|
import * as fixtureShelfService from '../service/fixtureShelf.service.js';
|
|
7
7
|
// import * as planoProductService from '../service/planoProduct.service.js';
|
|
@@ -677,7 +677,7 @@ export async function updateFixtureStatus( req, res ) {
|
|
|
677
677
|
if ( vmTask.length>0 ) {
|
|
678
678
|
let allTaskDone = vmTask.filter( ( data ) => data.status === 'incomplete' );
|
|
679
679
|
if ( allTaskDone.length === 0 ) {
|
|
680
|
-
await floorService.updateOne( { _id:
|
|
680
|
+
await floorService.updateOne( { _id: req.body.floorId }, { planoProgress: 100 } );
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
res.sendSuccess( 'updated successfully' );
|
|
@@ -643,7 +643,7 @@ export async function updateAnswersv2( req, res ) {
|
|
|
643
643
|
if ( vmTask.length>0 ) {
|
|
644
644
|
let allTaskDone = vmTask.filter( ( data ) => data.status === 'incomplete' );
|
|
645
645
|
if ( allTaskDone.length === 0 ) {
|
|
646
|
-
await floorService.updateOne( { _id:
|
|
646
|
+
await floorService.updateOne( { _id: req.body.floorId }, { planoProgress: 100 } );
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
return res.sendSuccess( 'Fixture details updated successfully' );
|