|
|
|
@ -79,9 +79,7 @@
|
|
|
|
|
(if (form/valid? form-def req)
|
|
|
|
|
(let [form-data (form/form-data form-def req)
|
|
|
|
|
form-instance (forms-inst/form-data->instance form-data attrs)
|
|
|
|
|
instance (assoc form-instance :uuid uuid)
|
|
|
|
|
_ (clojure.pprint/pprint instance)]
|
|
|
|
|
(clojure.pprint/pprint (files/persist-files! instance))
|
|
|
|
|
instance (assoc form-instance :uuid uuid)]
|
|
|
|
|
(db/edit! instance (domain/to-revision instance))
|
|
|
|
|
(resp/redirect (path :instance-show instance)))
|
|
|
|
|
(route-show! uuid req))))
|
|
|
|
|