tango-app-api-store-builder 1.0.0-beta-66 → 1.0.0-beta-67

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-66",
3
+ "version": "1.0.0-beta-67",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -471,7 +471,7 @@ export async function updateAnswers( req, res ) {
471
471
  type: req.body.type,
472
472
  };
473
473
 
474
- await planoTaskService.updateOne( { fixtureId: req.body.fixtureId, type: req.body.type }, data );
474
+ await planoTaskService.updateOne( { planoId: req.body.planoId, floorId: req.body.floorId, fixtureId: req.body.fixtureId, type: req.body.type, date_string: dayjs().format( 'YYYY-MM-DD' ) }, data );
475
475
  return res.sendSuccess( 'Fixture details updated successfully' );
476
476
  } catch ( e ) {
477
477
  logger.error( { functionName: 'updateAnswers', error: e } );
@@ -16,4 +16,4 @@ scriptRouter
16
16
  .post( '/updateinventory', scriptController.updateInventory )
17
17
  .post( '/updateRfidProduct', scriptController.updateRfidProduct )
18
18
  .post( '/updateRfidProduct2', scriptController.updateRfidProduct2 )
19
- .post('/getProdTaskData', scriptController.getProdTaskData );
19
+ .post( '/getProdTaskData', scriptController.getProdTaskData );