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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tango-app-api-trax",
3
- "version": "3.2.1-beta-6",
3
+ "version": "3.2.1-beta-7",
4
4
  "description": "Trax",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -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: requestHeader.clientid, email: userEmail }, { fcmToken: 1 } );
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 {