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 +1 -1
- package/src/controllers/trax.controller.js +1 -1
- package/src/hbs/login-otp.hbs +943 -943
package/package.json
CHANGED
|
@@ -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 =
|
|
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 = {
|