|
|
@ -2418,7 +2418,7 @@ const sendNotification = async (customerId, fcmIds, title, body) => {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
// Send notifications
|
|
|
|
// Send notifications
|
|
|
|
const notificationPromises = validTokens.map(async (token) => {
|
|
|
|
const notificationPromises = flatTokens.map(async (token) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const response = await admin.messaging().send({
|
|
|
|
const response = await admin.messaging().send({
|
|
|
|
notification: { title, body },
|
|
|
|
notification: { title, body },
|
|
|
|