mirror of https://github.com/status-im/cabot.git
Inactive users are no longer notified
This commit is contained in:
parent
3ed5f36bca
commit
9d88e5d846
|
@ -31,7 +31,7 @@ telephone_template = "This is an urgent message from Arachnys monitoring. Servic
|
|||
|
||||
|
||||
def send_alert(service, duty_officers=None):
|
||||
users = service.users_to_notify.all()
|
||||
users = service.users_to_notify.filter(is_active=True)
|
||||
if service.email_alert:
|
||||
send_email_alert(service, users, duty_officers)
|
||||
if service.hipchat_alert:
|
||||
|
|
Loading…
Reference in New Issue