mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-26 19:31:05 +00:00
Only update site_aggregates for local site (#3516)
This commit is contained in:
parent
93225e5ddf
commit
651f2747ee
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue