tango-app-api-task 3.7.43 → 3.7.45
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
|
@@ -7128,9 +7128,14 @@ export async function AITaskCreation( req, res ) {
|
|
|
7128
7128
|
// Step:2 User Validation
|
|
7129
7129
|
if ( inputBody.userEmail.length ) {
|
|
7130
7130
|
let userFind = [
|
|
7131
|
+
{
|
|
7132
|
+
$addFields: {
|
|
7133
|
+
emailLower: { $toLower: '$email' },
|
|
7134
|
+
},
|
|
7135
|
+
},
|
|
7131
7136
|
{
|
|
7132
7137
|
$match: {
|
|
7133
|
-
|
|
7138
|
+
emailLower: { $in: inputBody.userEmail?.map( ( email ) => email.toLowerCase() ) },
|
|
7134
7139
|
clientId: inputBody.clientId,
|
|
7135
7140
|
},
|
|
7136
7141
|
},
|
|
@@ -7338,6 +7343,8 @@ export async function AITaskCreation( req, res ) {
|
|
|
7338
7343
|
|
|
7339
7344
|
if ( inputBody.reason ) {
|
|
7340
7345
|
answer[0].reason = inputBody.reason;
|
|
7346
|
+
}
|
|
7347
|
+
if ( inputBody.detectionTime ) {
|
|
7341
7348
|
answer[0].detectionTime = inputBody.detectionTime;
|
|
7342
7349
|
}
|
|
7343
7350
|
|