Skip to content

Commit

Permalink
Merge pull request dani-garcia#3678 from BlackDex/fix-org-api-creatio…
Browse files Browse the repository at this point in the history
…n-postgres

Fix Org API Key generation on PosgreSQL
  • Loading branch information
dani-garcia authored Jul 10, 2023
2 parents 1c7338c + a8e5384 commit 61f9081
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/models/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ impl OrganizationApiKey {
let value = OrganizationApiKeyDb::to_db(self);
diesel::insert_into(organization_api_key::table)
.values(&value)
.on_conflict(organization_api_key::uuid)
.on_conflict((organization_api_key::uuid, organization_api_key::org_uuid))
.do_update()
.set(&value)
.execute(conn)
Expand Down

0 comments on commit 61f9081

Please sign in to comment.