Skip to content

Commit

Permalink
Fix primary-key constraint name on add-ps-team-member
Browse files Browse the repository at this point in the history
[Re #1611]

* Otherwise it wouldn't match the name real constraint name on the
database and thus not throw the expected error.
  • Loading branch information
lucassousaf committed Oct 31, 2023
1 parent f934172 commit 49ca4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/gpml/db/plastic_strategy/team.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
[conn ps-team-member]
(jdbc-util/with-constraint-violation-check
[{:type :unique
:name "plastic_strategy_team_member_pkey"
:name "plastic_strategy_team_pkey"
:error-reason :already-exists}]
(add-ps-team-member* conn (ps-team-member->p-ps-team-member ps-team-member))
{:success? true}))
Expand Down

0 comments on commit 49ca4d1

Please sign in to comment.