Only update site_aggregates for local site (#3516)

This commit is contained in:
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

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) {