Fix extra "resolved" message
This commit is contained in:
parent
f36fb69435
commit
f46f99c1a2
|
@ -31,6 +31,10 @@ class MessageHandler:
|
||||||
for alert_id in self.gotify.find_byfingerprint(alert):
|
for alert_id in self.gotify.find_byfingerprint(alert):
|
||||||
if not self.gotify.delete(alert_id):
|
if not self.gotify.delete(alert_id):
|
||||||
logging.error('There was a problem removing message ID %d', alert_id)
|
logging.error('There was a problem removing message ID %d', alert_id)
|
||||||
|
return {
|
||||||
|
'status': 200,
|
||||||
|
'reason': 'Message deletion complete'
|
||||||
|
}
|
||||||
|
|
||||||
prefix = 'resolved'
|
prefix = 'resolved'
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue