mirror of https://github.com/LemmyNet/lemmy.git
Only update site_aggregates for local site (#3516)
parent
93225e5ddf
commit
651f2747ee
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue