tango-app-api-task 3.4.1-activitylog-8 → 3.4.1-activitylog-10
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
|
@@ -188,6 +188,8 @@ export async function createUpdateTask( req, res ) {
|
|
|
188
188
|
} );
|
|
189
189
|
let compare = findDifferences( qn, question );
|
|
190
190
|
if ( Object.keys( compare ).length ) {
|
|
191
|
+
qn.questionReferenceImage = qn.questionReferenceImage.toString();
|
|
192
|
+
question.questionReferenceImage = question.questionReferenceImage.toString();
|
|
191
193
|
questionList.questionEdit.push( { sectionName: ele.section, questions: [ { previous: qn, new: question } ] } );
|
|
192
194
|
}
|
|
193
195
|
} else {
|
|
@@ -202,7 +204,6 @@ export async function createUpdateTask( req, res ) {
|
|
|
202
204
|
} );
|
|
203
205
|
} );
|
|
204
206
|
|
|
205
|
-
console.log( getExistQuestions, 'qns' );
|
|
206
207
|
|
|
207
208
|
inputBody.sections.forEach( ( ele ) => {
|
|
208
209
|
ele.questions.forEach( ( qn ) => {
|
|
@@ -2448,7 +2449,7 @@ export async function redoTask( req, res ) {
|
|
|
2448
2449
|
'sourceCheckList_id': taskDetails.sourceCheckList_id,
|
|
2449
2450
|
'checkListName': taskDetails.checkListName,
|
|
2450
2451
|
'fromCheckListName': taskDetails.checkListName,
|
|
2451
|
-
'type': '
|
|
2452
|
+
'type': 'task',
|
|
2452
2453
|
'action': 'redo',
|
|
2453
2454
|
'storeName': taskDetails?.storeName?taskDetails?.storeName:'',
|
|
2454
2455
|
'store_id': taskDetails?.store_id?taskDetails?.store_id:'',
|
|
@@ -2565,7 +2566,7 @@ export async function redomultiTask( req, res ) {
|
|
|
2565
2566
|
'sourceCheckList_id': taskDetails.sourceCheckList_id,
|
|
2566
2567
|
'checkListName': taskDetails.checkListName,
|
|
2567
2568
|
'fromCheckListName': taskDetails.checkListName,
|
|
2568
|
-
'type': '
|
|
2569
|
+
'type': 'task',
|
|
2569
2570
|
'action': 'redo',
|
|
2570
2571
|
'storeName': taskDetails?.storeName?taskDetails?.storeName:'',
|
|
2571
2572
|
'store_id': taskDetails?.store_id?taskDetails?.store_id:'',
|