0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-12-14 17:43:46 +01:00

Merge pull request #3678 from BlackDex/fix-org-api-creation-postgres

Fix Org API Key generation on PosgreSQL
This commit is contained in:
Daniel García 2023-07-10 17:59:53 +02:00 committed by GitHub
commit 61f9081827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)