Skip to content

Commit 71d63fb

Browse files
authored
Fix version upload for popular projects (#4410)
* Only notify users that exist * chore: query cache, clippy, fmt
1 parent f33efed commit 71d63fb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/labrinth/src/routes/v3/version_creation.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,9 @@ async fn version_create_inner(
400400

401401
let users = sqlx::query!(
402402
"
403-
SELECT follower_id FROM mod_follows
404-
WHERE mod_id = $1
403+
SELECT mf.follower_id FROM mod_follows mf
404+
INNER JOIN users u ON u.id = follower_id
405+
WHERE mf.mod_id = $1
405406
",
406407
builder.project_id as crate::database::models::ids::DBProjectId
407408
)

0 commit comments

Comments
 (0)