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