You can now turn schedules on and off

This commit is contained in:
Bryce Covert
2018-04-05 15:10:08 -07:00
parent 2e827e1313
commit e6ab637641
6 changed files with 35 additions and 19 deletions

View File

@@ -18,7 +18,7 @@
{:db (assoc-in db [:admin-companies :editing :saving?] true)
:http {:method :put
:token (:user db)
:body (pr-str (select-keys edited-company [:name :email :data]))
:body (pr-str (select-keys edited-company [:name :email :data :invoice-reminder-schedule]))
:headers {"Content-Type" "application/edn"}
:uri (str "/api/companies/" (:id edited-company))
:on-success [::save-complete]}})))
@@ -36,5 +36,3 @@
(fn [db [_ path value]]
(assoc-in db (concat [:admin-companies :editing] path)
value)))