@ -37,6 +37,17 @@
params))
(qry session params)))
(defn exec-queries! [& tuples]
(with-open [session (db/get-session @conn)]
(doseq [tuple tuples]
(let [qry (first tuple)
params (second tuple)]
(devmode/send-to-bar
(str (butiful-query qry)
"<br>---Params---<br>"
(qry session params)))))
(defn now-str []
(time-format/unparse
(time-format/formatters :basic-date-time)
@ -155,12 +155,11 @@
CREATE (s)<-[:permission{type:{permtype}}]-(u)")
(defn assign-users! [uuid users permission]
(neo4j/exec-query!
(neo4j/exec-queries!
remove-assignments
[remove-assignments
{:uuid uuid
:permtype permission})
:permtype permission}]
[create-assignments
create-assignments
:users users
:permtype permission}]))
:permtype permission}))