fixing kicking.

This commit is contained in:
BC
2018-10-25 21:11:38 -07:00
parent 8c1826f022
commit 690228ee94

View File

@@ -66,15 +66,13 @@
(if (= (:id a) id) (if (= (:id a) id)
(assoc a :status state) (assoc a :status state)
a)) a))
as))) as)))}))
}))
(re-frame/reg-event-fx (re-frame/reg-event-fx
::kick ::kick
(fn [{:keys [db]} [_ id]] (fn [{:keys [db]} [_ id]]
{:db (assoc-in db [::yodlee] {:accounts-loading? true}) {:http {:token (:user db)
:http {:token (:user db)
:method :post :method :post
:headers {"Content-Type" "application/edn"} :headers {"Content-Type" "application/edn"}
:uri (str "/api/yodlee/accounts/" id) :uri (str "/api/yodlee/accounts/" id)