From 8802591497e83ee891b824f9368f994c7229376c Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Fri, 25 Jan 2019 15:50:48 +0100 Subject: [PATCH] fix deletion of properties --- src/wanijo/instance/domain.clj | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wanijo/instance/domain.clj b/src/wanijo/instance/domain.clj index 3ec9aa6..ebd08e2 100644 --- a/src/wanijo/instance/domain.clj +++ b/src/wanijo/instance/domain.clj @@ -117,11 +117,12 @@ (neo4j/defquery delete "MATCH (i:instance {uuid:{uuid}}), - (i)-[ic:of]->(s:schema) + (i)-[ic:of]->(s:schema), + (i)-[cb:created_by]->(:user) OPTIONAL MATCH (p:property)-[pc:of]->(i), (p)-[pac:of]->(a:attribute) - DELETE pac, pc, ic, p, i") + DELETE pac, pc, cb, ic, p, i") (defn delete! [uuid] (neo4j/exec-query! delete {:uuid uuid}))