Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-21 05:00:28 +01:00
Fix Org API Key generation on PosgreSQL
Using PostgreSQL creating or rotating the Org API Key failed because of some query mismatch. This PR fixes that. Fixes https://github.com/dani-garcia/vaultwarden/discussions/3671#discussioncomment-6400394
Dieser Commit ist enthalten in:
Ursprung
1c7338c7c4
Commit
a8e5384c4a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -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)
|
||||
|
|
Laden …
In neuem Issue referenzieren