From 22f5e1aeabb120d264d58a46834ef27c52caf77a Mon Sep 17 00:00:00 2001 From: Amit Prinz Setter Date: Tue, 31 Dec 2024 20:31:50 +0200 Subject: [PATCH] Bucket Notifications - fix event typo after schema change (#8631) Signed-off-by: Amit Prinz Setter --- src/util/notifications_util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/notifications_util.js b/src/util/notifications_util.js index c3314e2355..747c7891af 100644 --- a/src/util/notifications_util.js +++ b/src/util/notifications_util.js @@ -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];