From 40c339db9bf197e4711f4a0438a0d06af44b919b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Sat, 14 Mar 2020 23:52:16 +0100 Subject: [PATCH] Fix postgres policies, second try --- src/db/models/org_policy.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/models/org_policy.rs b/src/db/models/org_policy.rs index 7567dfb3..08a43aac 100644 --- a/src/db/models/org_policy.rs +++ b/src/db/models/org_policy.rs @@ -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")?;