tango-app-api-task 3.7.44 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-task",
3
- "version": "3.7.44",
3
+ "version": "3.7.45",
4
4
  "description": "Task",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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
- email: { $in: inputBody.userEmail },
7138
+ emailLower: { $in: inputBody.userEmail?.map( ( email ) => email.toLowerCase() ) },
7134
7139
  clientId: inputBody.clientId,
7135
7140
  },
7136
7141
  },