Skip to content

Commit

Permalink
Bucket Notifications - fix event typo after schema change (#8631)
Browse files Browse the repository at this point in the history
Signed-off-by: Amit Prinz Setter <[email protected]>
  • Loading branch information
alphaprinz authored Dec 31, 2024
1 parent 504b3bc commit 22f5e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/notifications_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ function check_notif_relevant(notif, req) {
}

//if no events were specified, always notify
if (!notif.events) return true;
if (!notif.event) return true;

//check request's event is in notification's events list
for (const notif_event of notif.events) {
for (const notif_event of notif.event) {
const notif_event_elems = notif_event.split(':');
const notif_event_name = notif_event_elems[1];
const notif_event_method = notif_event_elems[2];
Expand Down

0 comments on commit 22f5e1a

Please sign in to comment.