mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Only update site_aggregates for local site (#3516)
This commit is contained in:
parent
93225e5ddf
commit
651f2747ee
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user