notification-bug-fix (#112)
All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 3m47s
All checks were successful
Deploy FitLien services to Dev / Deploy to Dev (push) Successful in 3m47s
Co-authored-by: Dhansh A S <dhanshas@cosq.net> Reviewed-on: #112 Reviewed-by: Allen T J <allentj@cosq.net> Co-authored-by: Sharon Dcruz <sharondcruz@cosq.net> Co-committed-by: Sharon Dcruz <sharondcruz@cosq.net>
This commit is contained in:
parent
b41431b151
commit
e762d0fb79
@ -82,15 +82,6 @@ async function getUserAndFCMToken(
|
||||
if (notification.recipientId) {
|
||||
targetUserId = notification.recipientId;
|
||||
logger.info(`Using top-level recipientId: ${targetUserId}`);
|
||||
} else if (notification.data?.userId) {
|
||||
targetUserId = notification.data.userId;
|
||||
logger.info(`Using data.userId: ${targetUserId}`);
|
||||
} else if (notification.data?.clientId) {
|
||||
targetUserId = notification.data.clientId;
|
||||
logger.info(`Using data.clientId: ${targetUserId}`);
|
||||
} else if (notification.data?.invitorId) {
|
||||
targetUserId = notification.data.invitorId;
|
||||
logger.info(`Using data.invitorId: ${targetUserId}`);
|
||||
} else if (notification.data?.phoneNumber) {
|
||||
logger.info(
|
||||
`Looking up user by phone number from data: ${notification.data.phoneNumber}`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user