Fix extra "resolved" message

This commit is contained in:
Scott Wallace 2020-10-30 17:20:24 +00:00
parent f36fb69435
commit f46f99c1a2

View file

@ -31,6 +31,10 @@ class MessageHandler:
for alert_id in self.gotify.find_byfingerprint(alert):
if not self.gotify.delete(alert_id):
logging.error('There was a problem removing message ID %d', alert_id)
return {
'status': 200,
'reason': 'Message deletion complete'
}
prefix = 'resolved'
else: