1
0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2024-11-11 13:32:38 +01:00

Fix postgres policies, second try

This commit is contained in:
Daniel García 2020-03-14 23:52:16 +01:00
parent 402c1cd06c
commit 40c339db9b
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A

View File

@ -63,8 +63,8 @@ impl OrgPolicy {
// not support multiple constraints on ON CONFLICT clauses.
diesel::delete(
org_policies::table
.filter(org_policies::org_uuid.eq(self.org_uuid))
.filter(org_policies::atype.eq(self.atype)),
.filter(org_policies::org_uuid.eq(&self.org_uuid))
.filter(org_policies::atype.eq(&self.atype)),
)
.execute(&**conn)
.map_res("Error deleting org_policy for insert")?;