tango-app-api-trax 3.2.1-beta-6 → 3.2.1-beta-7
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
|
@@ -1474,7 +1474,7 @@ export async function internalSendPushNotification( req, res ) {
|
|
|
1474
1474
|
async function getUserToken( clientId, userEmail ) {
|
|
1475
1475
|
try {
|
|
1476
1476
|
if ( clientId && clientId !='' && userEmail && userEmail !='' ) {
|
|
1477
|
-
let userData = await userService.findOne( { clientId:
|
|
1477
|
+
let userData = await userService.findOne( { clientId: clientId, email: userEmail }, { fcmToken: 1 } );
|
|
1478
1478
|
if ( userData && userData.fcmToken && userData.fcmToken !='' ) {
|
|
1479
1479
|
return userData.fcmToken;
|
|
1480
1480
|
} else {
|