fix(scheduled_tasks): get count metrics from correct tables

This commit is contained in:
alyssa 2025-01-03 19:51:41 +00:00
parent 3329e48e1b
commit fa9e88c846

View file

@ -34,9 +34,9 @@ pub async fn update_db_meta(ctx: AppCtx) -> anyhow::Result<()> {
r#" r#"
update info set update info set
system_count = (select count(*) from systems), system_count = (select count(*) from systems),
member_count = (select count(*) from systems), member_count = (select count(*) from members),
group_count = (select count(*) from systems), group_count = (select count(*) from groups),
switch_count = (select count(*) from systems) switch_count = (select count(*) from switches)
"#, "#,
) )
.await?; .await?;