tango-app-api-task 3.4.0-flag-0 → 3.4.0-flag-2

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-task",
3
- "version": "3.4.0-flag-0",
3
+ "version": "3.4.0-flag-2",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -191,8 +191,8 @@ export async function createUpdateTask( req, res ) {
191
191
  delete ans.answeroptionNumber;
192
192
  } );
193
193
  let compare = findDifferences( qn, question );
194
- if ( Object.keys( compare ).length && ( compare?.answerType || compare?.answers || compare?.linkType ) ) {
195
- questionList.questionEdit.push( { sectionName: ele.section, questions: [ { previous: qn }, { new: question } ] } );
194
+ if ( Object.keys( compare ).length && ( compare?.answerType || compare?.answers || compare?.linkType || compare?.qname) ) {
195
+ questionList.questionEdit.push( { sectionName: ele.section, questions: [ { previous: qn ,new: question} ] } );
196
196
  }
197
197
  } else {
198
198
  let sectionIndex = questionList.questionDelete.findIndex( ( sec ) => sec.sectionName === ele.section );
@@ -231,7 +231,7 @@ export async function createUpdateTask( req, res ) {
231
231
  sourceCheckList_id: inputBody._id,
232
232
  checkListName: inputBody.checklistName,
233
233
  fromCheckListName: '',
234
- type: 'checklist',
234
+ type: 'task',
235
235
  action: 'edited',
236
236
  storeName: '',
237
237
  store_id: '',