Skip to content

Conversation

@aecsocket
Copy link
Contributor

No description provided.

Comment on lines -672 to -694
.await?;

sqlx::query!(
"
DELETE FROM payouts_values
WHERE user_id = $1
",
id as DBUserId,
)
.execute(&mut *transaction)
.await?;

sqlx::query!(
"
UPDATE payouts
SET user_id = $1
WHERE user_id = $2
",
deleted_user as DBUserId,
id as DBUserId,
)
.execute(&mut *transaction)
.await?;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deleting this block because right now we're running these queries twice - see https://github.com/modrinth/code/blob/main/apps/labrinth/src/database/models/user_item.rs and ctrl+f payouts_values, payouts

@Prospector Prospector requested a review from a team February 11, 2026 04:48
@aecsocket aecsocket added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit e7eb489 Feb 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants