From 33bda110bebb56c6c830e6ba9ad5be12df06cf3a Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Thu, 11 Oct 2018 16:06:42 +0200 Subject: [PATCH] kibit --- src/wanijo/attribute/domain.clj | 9 ++++----- src/wanijo/instance/domain.clj | 9 ++++----- src/wanijo/schema/domain.clj | 9 ++++----- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/wanijo/attribute/domain.clj b/src/wanijo/attribute/domain.clj index 0b77ee0..f7e97ba 100644 --- a/src/wanijo/attribute/domain.clj +++ b/src/wanijo/attribute/domain.clj @@ -22,11 +22,10 @@ ORDER BY a.name") (defn find-by-schema! [schema-uuid] - (->> - (neo4j/exec-query! - findy-by-schema - {:uuid schema-uuid}) - (map :a))) + (map :a + (neo4j/exec-query! + findy-by-schema + {:uuid schema-uuid}))) (neo4j/defquery create-new "MATCH (s:schema {uuid:{schema_uuid}}), diff --git a/src/wanijo/instance/domain.clj b/src/wanijo/instance/domain.clj index a393019..18451d2 100644 --- a/src/wanijo/instance/domain.clj +++ b/src/wanijo/instance/domain.clj @@ -15,11 +15,10 @@ ORDER BY i.updated_at DESC") (defn find-by-schema! [schema-uuid] - (->> - (neo4j/exec-query! - findy-by-schema - {:uuid schema-uuid}) - (map :i))) + (map :i + (neo4j/exec-query! + findy-by-schema + {:uuid schema-uuid}))) (neo4j/defquery create-instance "MATCH (s:schema {uuid:{schema_uuid}}) diff --git a/src/wanijo/schema/domain.clj b/src/wanijo/schema/domain.clj index 1e6022e..b2a8505 100644 --- a/src/wanijo/schema/domain.clj +++ b/src/wanijo/schema/domain.clj @@ -20,11 +20,10 @@ ORDER BY s.name") (defn all-created-by! [user-uuid] - (->> - (neo4j/exec-query! - all-created-by - {:uuid user-uuid}) - (map :s))) + (map :s + (neo4j/exec-query! + all-created-by + {:uuid user-uuid}))) (neo4j/defquery all