tango-app-api-task 3.7.13 → 3.7.14
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
|
@@ -5084,7 +5084,6 @@ export async function taskcreation( req, res ) {
|
|
|
5084
5084
|
let clientDetails = await clientService.findOne( { clientId: inputBody?.clientId }, { traxVideoUploadTimeLimit: 1 } );
|
|
5085
5085
|
data['videoUploadTimeLimit'] = clientDetails?.traxVideoUploadTimeLimit || 0;
|
|
5086
5086
|
data['approver'] = userAdmin;
|
|
5087
|
-
data['allowUploadFromGallery'] = true;
|
|
5088
5087
|
|
|
5089
5088
|
let response = await taskService.create( data );
|
|
5090
5089
|
if ( response?.approver.length ) {
|
|
@@ -5138,7 +5137,7 @@ export async function taskcreation( req, res ) {
|
|
|
5138
5137
|
'answerType': ques?.answerType || 'yes/no',
|
|
5139
5138
|
'runAI': false,
|
|
5140
5139
|
'runAIDescription': '',
|
|
5141
|
-
'allowUploadfromGallery': false,
|
|
5140
|
+
'allowUploadfromGallery': ques?.allowUploadfromGallery ?? false,
|
|
5142
5141
|
'linkType': false,
|
|
5143
5142
|
'questionReferenceImage': [],
|
|
5144
5143
|
'answers': answer,
|
package/src/dtos/task.dto.js
CHANGED
|
@@ -49,6 +49,7 @@ const questionSchema = Joi.object( {
|
|
|
49
49
|
question: Joi.string().required(),
|
|
50
50
|
answerType: Joi.string().required(),
|
|
51
51
|
options: Joi.array().items().optional(),
|
|
52
|
+
allowUploadfromGallery: Joi.boolean().optional(),
|
|
52
53
|
} );
|
|
53
54
|
const gettaskSchema = Joi.object( {
|
|
54
55
|
sourceCheckList_id: Joi.string().required(),
|