tango-app-api-store-builder 1.0.0-beta-181 → 1.0.0-beta-183

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-181",
3
+ "version": "1.0.0-beta-183",
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.3.12",
35
+ "tango-api-schema": "^2.3.19",
36
36
  "tango-app-api-middleware": "3.1.48",
37
37
  "url": "^0.11.4",
38
38
  "winston": "^3.17.0",
@@ -72,7 +72,7 @@ export async function updateTemplate( req, res ) {
72
72
  if ( !templateDetails ) {
73
73
  return res.sendError( 'No data found', 204 );
74
74
  }
75
- let checkName = await fixtureConfigService.find( { _id: { $nin: req.params.templateId }, fixtureName: inputData.fixtureName } );
75
+ let checkName = await fixtureConfigService.findOne( { _id: { $ne: req.params.templateId }, fixtureName: inputData.fixtureName } );
76
76
  if ( checkName ) {
77
77
  return res.sendError( 'Fixture name already exist', 400 );
78
78
  }
@@ -1022,6 +1022,12 @@ export async function getRolloutFeedback( req, res ) {
1022
1022
  const filterByApprovalStatus = req.body.filterByApprovalStatus || '';
1023
1023
  const resultMap = {};
1024
1024
  const commentMap = {};
1025
+ if ( req.body.redo ) {
1026
+ let taskDetails = await planoTaskService.findOne( { taskId: req.body.taskId, fixtureId: req.body.fixtureId } );
1027
+ if ( !taskDetails ) {
1028
+ req.body.taskId = req.body.refTaskId;
1029
+ }
1030
+ }
1025
1031
  await Promise.all(
1026
1032
  taskTypes.map( async ( type, index ) => {
1027
1033
  const pipeline = buildPipelineByType( type, req.body.planoId, req.body.floorId, filterByStatus, filterByApprovalStatus, req.body.showtask, req.body.taskId );
@@ -135,6 +135,7 @@ export async function createTask( req, res ) {
135
135
  scheduleEndTime_iso: dayjs.utc( scheduleEndTime, 'hh:mm A' ).format(),
136
136
  date_string: dayjs().format( 'YYYY-MM-DD' ),
137
137
  date_iso: new Date( dayjs().format( 'YYYY-MM-DD' ) ),
138
+ refTaskId: req.body.taskId,
138
139
  },
139
140
  };
140
141