Created
May 24, 2017 09:48
-
-
Save igrishaev/42d182235c5b28043e494c62255bdf66 to your computer and use it in GitHub Desktop.
inferior lisp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#_=> [params][34G[27G[35G | |
#_=> (let [{:keys [user_id | |
#_=> subdomain | |
#_=> addresses][50G[51G}[51G[52G params | |
#_=> access-params {:user_id user_id | |
#_=> :subdomain subdomain | |
ners}[5G[6G | |
-params)[8G[1A[55G[1B[9G | |
#_=> addr-ids (mapv :id addresses)[61G[42G[62G][62G[63G | |
#_=> (db/with-trx | |
#_=> (doseq [addr addresses][53G[38G[54G | |
r for existence | |
#_=> :id (:id addr)[71G[62G[72G)[72G[73G][73G[74G | |
#_=> (u/validat (:entity_id obj)[61G[46G[62G)[62G[35G[63G)[63G[64G | |
#_=> (db/update! :addresses ;; update an addr | |
#_=> (dissoc addr :id)[61G[45G[62G | |
#_=> ["id = ?" (:id addr)[64G[55G[65G][65G[45G[66G)[66G[67G)[67G[68G | |
#_=> | |
s | |
#_=> {:table "addresses" | |
#_=> :ids addr-ids}[61G[62G)[62G[63G][63G[64G | |
#_=> (db/audit-update user_id ;; create audit logs | |
#_=> :addresses | |
#_=> db-addrs)[58G[59G | |
#_=> {:data db-addrs}[48G[33G[49G)[49G[50G)[50G[51G)[51G[52G)[52G[53G | |
CompilerException java.lang.RuntimeException: No such var: u/validat, compiling:(/private/var/folders/94/rwlfpkhx4n12vfjb0d0kxspw0000gn/T/form-init6541566708059482055.clj:16:11) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment