Only update site_aggregates for local site (#3516)

pull/3581/head
Sander Saarend 2023-07-10 18:20:39 +03:00 committed by GitHub
parent 93225e5ddf
commit 651f2747ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ fn active_counts(conn: &mut PgConnection) {
for i in &intervals { for i in &intervals {
let update_site_stmt = format!( let update_site_stmt = format!(
"update site_aggregates set users_active_{} = (select * from site_aggregates_activity('{}'))", "update site_aggregates set users_active_{} = (select * from site_aggregates_activity('{}')) where site_id = 1",
i.1, i.0 i.1, i.0
); );
match sql_query(update_site_stmt).execute(conn) { match sql_query(update_site_stmt).execute(conn) {