Commit 6dc20ec
committed
fix: handle duplicate tournament roster insert on invite accept
Add on_conflict clause to the tournament_team_roster insert mutation
in acceptTournamentTeamInvite. Without this, a player accepting an
invite twice (e.g. double-click or retry after timeout) triggers a
uniqueness violation on tournament_roster_pkey.1 parent 07c4d21 commit 6dc20ec
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
0 commit comments