Fix version upload for popular projects (#4410)

* Only notify users that exist

* chore: query cache, clippy, fmt
This commit is contained in:
François-Xavier Talbot
2025-09-22 23:12:17 +01:00
committed by GitHub
parent f33efed91b
commit 71d63fbe17
2 changed files with 5 additions and 4 deletions

View File

@@ -400,8 +400,9 @@ async fn version_create_inner(
let users = sqlx::query!(
"
SELECT follower_id FROM mod_follows
WHERE mod_id = $1
SELECT mf.follower_id FROM mod_follows mf
INNER JOIN users u ON u.id = follower_id
WHERE mf.mod_id = $1
",
builder.project_id as crate::database::models::ids::DBProjectId
)