tango-app-api-trax 3.3.1-beta-35 → 3.3.1-beta-36

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-trax",
3
- "version": "3.3.1-beta-35",
3
+ "version": "3.3.1-beta-36",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -3615,7 +3615,7 @@ async function assignUsers( data ) {
3615
3615
  ];
3616
3616
  let storeDetails = await storeService.aggregate( query );
3617
3617
  if ( storeDetails.length ) {
3618
- let email = !data?.insert ? data.userEmail : storeDetails?.[0]?.spocDetails?.[0]?.email;
3618
+ let email = data?.userEmail ? data.userEmail : storeDetails?.[0]?.spocDetails?.[0]?.email;
3619
3619
  let userDetails = await userService.findOne( { email: email, clientId: data.clientId } );
3620
3620
  if ( !userDetails ) {
3621
3621
  let userData = {