Browse Source
Merge pull request #3678 from BlackDex/fix-org-api-creation-postgres
Fix Org API Key generation on PosgreSQL
pull/3686/head
Daniel García
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/db/models/organization.rs
|
|
@ -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) |
|
|
|