Skip to content
Snippets Groups Projects
Unverified Commit 651f2747 authored by Sander Saarend's avatar Sander Saarend Committed by GitHub
Browse files

Only update site_aggregates for local site (#3516)

parent 93225e5d
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ fn active_counts(conn: &mut PgConnection) { ...@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment