From fa9e88c8462cb6bbb8ba87f7a44c0b61ec8b70b1 Mon Sep 17 00:00:00 2001 From: alyssa Date: Fri, 3 Jan 2025 19:51:41 +0000 Subject: [PATCH] fix(scheduled_tasks): get count metrics from correct tables --- crates/scheduled_tasks/src/tasks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/scheduled_tasks/src/tasks.rs b/crates/scheduled_tasks/src/tasks.rs index d2d9e412..8a39680b 100644 --- a/crates/scheduled_tasks/src/tasks.rs +++ b/crates/scheduled_tasks/src/tasks.rs @@ -34,9 +34,9 @@ pub async fn update_db_meta(ctx: AppCtx) -> anyhow::Result<()> { r#" update info set system_count = (select count(*) from systems), - member_count = (select count(*) from systems), - group_count = (select count(*) from systems), - switch_count = (select count(*) from systems) + member_count = (select count(*) from members), + group_count = (select count(*) from groups), + switch_count = (select count(*) from switches) "#, ) .await?;