tango-app-api-store-builder 1.0.0-beta-182 → 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
|
@@ -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.
|
|
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 );
|