mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 16:20:13 +00:00
fix(scheduled_tasks): get count metrics from correct tables
This commit is contained in:
parent
3329e48e1b
commit
fa9e88c846
1 changed files with 3 additions and 3 deletions
|
|
@ -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?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue