Skip to content

Commit

Permalink
Only update site_aggregates for local site (#3516)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunaurus authored Jul 10, 2023
1 parent 93225e5 commit 651f274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduled_tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ fn active_counts(conn: &mut PgConnection) {

for i in &intervals {
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
);
match sql_query(update_site_stmt).execute(conn) {
Expand Down

0 comments on commit 651f274

Please sign in to comment.