From 8bd852d79cde41bcec3f63c6f588313309461862 Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 13 Jan 2022 14:25:06 +0100 Subject: [PATCH] feat(api): fixed update alerts --- api/chalicelib/core/alerts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/alerts.py b/api/chalicelib/core/alerts.py index ef35d48b3..42411b8bc 100644 --- a/api/chalicelib/core/alerts.py +++ b/api/chalicelib/core/alerts.py @@ -110,7 +110,7 @@ def update(id, data: schemas.AlertSchema): UPDATE public.alerts SET name = %(name)s, description = %(description)s, - active = %(active)s, + active = TRUE, detection_method = %(detection_method)s, query = %(query)s, options = %(options)s,