Ensure we're using the right names when checking params

This commit is contained in:
Simon Brooke 2018-08-09 13:21:18 +01:00
parent 9d9a800289
commit 5860a53abf

View file

@ -77,7 +77,7 @@
'if 'if
(list (list
'all-keys-present? 'all-keys-present?
'params (key-names e true)) 'params (set (map #(safe-name % :sql) (key-names e true))))
(list (list
'support/do-or-log-error 'support/do-or-log-error
(list (list
@ -302,6 +302,9 @@
(defn make-form-post-handler-content (defn make-form-post-handler-content
"Generate the body of the post handler for the form `f` of
entity `e` in application `a`. The argument `n` is bound to the name
of the function, but is not currently used."
;; Literally the only thing the post handler has to do is to ;; Literally the only thing the post handler has to do is to
;; generate the database store operation. Then it can hand off ;; generate the database store operation. Then it can hand off
;; to the get handler. ;; to the get handler.
@ -317,7 +320,7 @@
'params 'params
(set (set
(map (map
#(-> % :attrs :name) #(safe-name (-> % :attrs :name) :sql)
(insertable-properties e)))) (insertable-properties e))))
'result 'result
(list (list