From 0ca7994672c3fd318afcde184fc7b337f832f1fb Mon Sep 17 00:00:00 2001 From: Taha Yassine Kraiem Date: Thu, 27 Apr 2023 17:36:16 +0200 Subject: [PATCH] feat(chalice): fixed typo --- api/chalicelib/core/health.py | 2 +- ee/api/chalicelib/core/health.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/chalicelib/core/health.py b/api/chalicelib/core/health.py index 7f9c02f1e..e8bf8f909 100644 --- a/api/chalicelib/core/health.py +++ b/api/chalicelib/core/health.py @@ -161,7 +161,7 @@ def __check_SSL(*_): def __get_sessions_stats(*_): with pg_client.PostgresClient() as cur: - constraints = ["projects.deteled_at IS NULL"] + constraints = ["projects.deleted_at IS NULL"] query = cur.mogrify(f"""SELECT COALESCE(SUM(sessions_count),0) AS s_c, COALESCE(SUM(events_count),0) AS e_c FROM public.projects_stats diff --git a/ee/api/chalicelib/core/health.py b/ee/api/chalicelib/core/health.py index 32e44c133..cbb8dcc0d 100644 --- a/ee/api/chalicelib/core/health.py +++ b/ee/api/chalicelib/core/health.py @@ -162,7 +162,7 @@ def __check_SSL(*_): def __get_sessions_stats(tenant_id, *_): with pg_client.PostgresClient() as cur: - constraints = ["projects.deteled_at IS NULL"] + constraints = ["projects.deleted_at IS NULL"] if tenant_id: constraints.append("tenant_id=%(tenant_id)s") query = cur.mogrify(f"""SELECT COALESCE(SUM(sessions_count),0) AS s_c,