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}))