Updated
This commit is contained in:
parent
c24ea923d4
commit
9bc89f28c3
@ -82,15 +82,6 @@ async function getUserAndFCMToken(
|
|||||||
if (notification.recipientId) {
|
if (notification.recipientId) {
|
||||||
targetUserId = notification.recipientId;
|
targetUserId = notification.recipientId;
|
||||||
logger.info(`Using top-level recipientId: ${targetUserId}`);
|
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) {
|
} else if (notification.data?.phoneNumber) {
|
||||||
logger.info(
|
logger.info(
|
||||||
`Looking up user by phone number from data: ${notification.data.phoneNumber}`
|
`Looking up user by phone number from data: ${notification.data.phoneNumber}`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user