Skip to content

Commit

Permalink
Switch to Messaging.sendEach
Browse files Browse the repository at this point in the history
  • Loading branch information
nkalupahana committed Dec 13, 2024
1 parent 8deee38 commit 600dbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduled-services/src/messaging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 600dbc4

Please sign in to comment.