can set up multiple locations

This commit is contained in:
Bryce Covert
2018-06-15 12:32:40 -07:00
parent f9c0e55b01
commit b06a6651ca
7 changed files with 88 additions and 55 deletions

View File

@@ -19,7 +19,9 @@
(-> x
(assoc-in [:data :bank-accounts] (:bank-accounts x))
(assoc-in [:data :address] (:address x))
(assoc-in [:data :locations] (:locations x))
(dissoc :bank-accounts)
(dissoc :locations)
(dissoc :address)))
(defn get-all []

View File

@@ -34,6 +34,7 @@
{:fields {:id {:type 'Int}
:name {:type 'String}
:email {:type 'String}
:locations {:type '(list String)}
:bank_accounts {:type '(list :bank_account)}}}
:bank_account