Skip to content

Commit 22f5e1a

Browse files
authored
Bucket Notifications - fix event typo after schema change (#8631)
Signed-off-by: Amit Prinz Setter <alphaprinz@gmail.com>
1 parent 504b3bc commit 22f5e1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util/notifications_util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,10 @@ function check_notif_relevant(notif, req) {
438438
}
439439

440440
//if no events were specified, always notify
441-
if (!notif.events) return true;
441+
if (!notif.event) return true;
442442

443443
//check request's event is in notification's events list
444-
for (const notif_event of notif.events) {
444+
for (const notif_event of notif.event) {
445445
const notif_event_elems = notif_event.split(':');
446446
const notif_event_name = notif_event_elems[1];
447447
const notif_event_method = notif_event_elems[2];

0 commit comments

Comments
 (0)