tango-app-api-store-builder 1.0.0-beta-165 → 1.0.0-beta-167

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-165",
3
+ "version": "1.0.0-beta-167",
4
4
  "description": "storeBuilder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -80,7 +80,7 @@ function buildPipelineByType( type, planoId, floorId, filterByStatus, filterByAp
80
80
  planoId: new mongoose.Types.ObjectId( planoId ),
81
81
  floorId: new mongoose.Types.ObjectId( floorId ),
82
82
  type: type,
83
- ...( taskId && { taskId: taskId } ),
83
+ ...( taskId && { taskId: new mongoose.Types.ObjectId( taskId ) } ),
84
84
  ...( filterByStatus?.length ? { status: { $in: filterByStatus } } : {} ),
85
85
  },
86
86
  };
@@ -566,6 +566,7 @@ export async function updateStatus( req, res ) {
566
566
  planoId: new mongoose.Types.ObjectId( taskDetails.planoId ),
567
567
  floorId: new mongoose.Types.ObjectId( taskDetails.floorId ),
568
568
  type: taskDetails.planoType,
569
+ taskId: new mongoose.Types.ObjectId( req.body.taskId ),
569
570
  status: 'complete',
570
571
  },
571
572
  { fixtureId: 1 },