Skip to content

Commit

Permalink
Fix delete_player deleting from all heya
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldickison committed Jul 29, 2024
1 parent c200197 commit aae5709
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data/heya.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ impl Heya {
txn.prepare(
"
DELETE FROM heya_player
WHERE player_id = ?
WHERE heya_id = ? AND player_id = ?
",
)?
.execute(params![player])?;
.execute(params![self.id, player])?;
self.member_count -= 1;
self.members = None;
txn.commit()?;
Expand Down

0 comments on commit aae5709

Please sign in to comment.