Create and Update now work.

Still further work to do - not getting the id back correctly from insert - but it's beginning to work
This commit is contained in:
Simon Brooke 2018-08-05 17:17:08 +01:00
parent 34552cff4f
commit f0eb2a7d18

View file

@ -311,6 +311,13 @@
(list
'let
(vector
'insert-params (list
'prepare-insertion-params
'params
(set
(map
#(-> % :attrs :name)
(insertable-properties e))))
'result
(list
'valid-user-or-forbid
@ -324,14 +331,14 @@
(list
update-name
'db/*db*
'params)
'insert-params)
200)
(list
'do-or-server-fail
(list
create-name
'db/*db*
'params)
'insert-params)
201))
'params
(set