Skip to content

Commit

Permalink
fix: OZENSEMBLE-K2 (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudambro authored Jul 25, 2024
1 parent f47cdef commit eec4531
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/utils/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const scheduleNotificationsInactivity5DaysCronJob = async () => {
});

for (const { id } of users) {
saveInactivity5Days(id);
await saveInactivity5Days(id);
}
} catch (e) {
capture(e, { level: "error" });
Expand Down Expand Up @@ -138,7 +138,7 @@ const scheduleNotificationsNotFilledWeekCronJob = async () => {
});

for (const { id } of users) {
saveNotFilledWeek(id);
await saveNotFilledWeek(id);
}
} catch (e) {
capture(e, { level: "error" });
Expand Down Expand Up @@ -435,7 +435,7 @@ const notificationsCronJob = async () => {
const sentNotifications = [];
for (const notif of notifs) {
if (!notif?.user?.push_notif_token) continue;
sendPushNotification({
await sendPushNotification({
userId: notif.user.id,
matomoId: notif.user.matomo_id,
pushNotifToken: notif.user.push_notif_token,
Expand Down

0 comments on commit eec4531

Please sign in to comment.