diff --git a/scheduled-services/src/messaging.ts b/scheduled-services/src/messaging.ts index 9f8e3b51..a999f224 100644 --- a/scheduled-services/src/messaging.ts +++ b/scheduled-services/src/messaging.ts @@ -163,7 +163,7 @@ export const logReminder = async (req: Request, res: Response) => { const chunkedMessages = _.chunk(messages, 100); const chunkedAssociations = _.chunk(userMessageAssociation, 100); for (let i = 0; i < chunkedMessages.length; ++i) { - const messagingResult = await getMessaging().sendAll(chunkedMessages[i]); + const messagingResult = await getMessaging().sendEach(chunkedMessages[i]); console.log(JSON.stringify(messagingResult)); makeInternalRequest(req, "messaging/cleanUpTokens", { userMessageAssociation: chunkedAssociations[i],