Skip to content

Commit

Permalink
fix(scheduled_tasks): get count metrics from correct tables
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssa committed Jan 3, 2025
1 parent 3329e48 commit fa9e88c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/scheduled_tasks/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit fa9e88c

Please sign in to comment.