pedestal

manandearth 2019-03-06T06:33:57.017900Z

thanks @ddeaguiar . I managed to fix it now to:

(def list-delete
   {:name :list-delete
    :enter
    (fn [context]
      (let [nm (get-in context [:request :query-params :name]) 
            db (get-in context [:request :database])
            db-id (key (first (filter #(= (:name (val %)) nm) db)))
            new-map (dissoc db db-id) 
            url (route/url-for :list-view :params {:list-id db-id})]
        (assoc context
               :tx-data [dissoc db db-id]
               :response (accepted (str new-map))) 
         ))})
There were a couple of things I didn't get ... All the smarter now!

2019-03-06T14:20:41.018100Z

:thumbsup: