tango-app-api-store-builder 1.0.0-beta-150 → 1.0.0-beta-151

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-150",
3
+ "version": "1.0.0-beta-151",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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: req.body.floorId }, { planoProgress: 100 } );
680
+ await floorService.updateOne( { _id: new mongoose.Types.ObjectId( 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: req.body.floorId }, { planoProgress: 100 } );
646
+ await floorService.updateOne( { _id: new mongoose.Types.ObjectId( req.body.floorId ) }, { planoProgress: 100 } );
647
647
  }
648
648
  }
649
649
  return res.sendSuccess( 'Fixture details updated successfully' );