Fix bug that lead to notifications being sent for all events

This commit is contained in:
Raphael Michel
2018-02-04 18:53:56 +01:00
parent cb83c9cff2
commit 340e7afd06

View File

@@ -39,6 +39,7 @@ def notify(logentry_id: int):
notify_global = {
(ns.user, ns.method): ns.enabled
for ns in NotificationSetting.objects.filter(
event__isnull=True,
action_type=logentry.action_type,
user__pk__in=users.values_list('pk', flat=True)
)