From 068247a36b08db62bbd53c8283cce75bb44b538d Mon Sep 17 00:00:00 2001 From: Balamurali M Date: Fri, 28 Jun 2024 14:14:28 +0530 Subject: [PATCH] fix(Incident): Add alert to index This will be used to check for duplicate before creating incident fn needs to be manually run --- press/press/doctype/incident/incident.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/press/press/doctype/incident/incident.py b/press/press/doctype/incident/incident.py index daf15566a8..2dd9b4004b 100644 --- a/press/press/doctype/incident/incident.py +++ b/press/press/doctype/incident/incident.py @@ -463,4 +463,4 @@ def notify_ignored_servers(): def on_doctype_update(): - frappe.db.add_index("Incident", ["server", "status"]) + frappe.db.add_index("Incident", ["alert", "server", "status"])