tango-app-api-task 3.4.1-activitylog-7 → 3.4.1-activitylog-9
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 ) => {
|
|
@@ -988,6 +988,7 @@ export const taskDeleteV1 = async ( req, res ) => {
|
|
|
988
988
|
createdBy: req.user.userName,
|
|
989
989
|
coverage: taskConfig.coverage,
|
|
990
990
|
logDetails: {},
|
|
991
|
+
userType: req?.user?.userType || '',
|
|
991
992
|
};
|
|
992
993
|
insertOpenSearchData( JSON.parse( process.env.OPENSEARCH ).traxActivityLog, logObj );
|
|
993
994
|
// console.log( 'Update result:', resultData );
|