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,