Skip to content

Commit e20cab6

Browse files
authored
fix: handle duplicate tournament roster insert on invite accept (#134)
Co-authored-by: Flegma <Flegma@users.noreply.github.com>
1 parent 07c4d21 commit e20cab6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/invites/invites.controller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,10 @@ export class InvitesController {
256256
tournament_team_invites_by_pk.tournament_team_id,
257257
player_steam_id: user.steam_id,
258258
},
259+
on_conflict: {
260+
constraint: "tournament_roster_pkey",
261+
update_columns: ["role"],
262+
},
259263
},
260264
__typename: true,
261265
},

0 commit comments

Comments
 (0)