Skip to content
Snippets Groups Projects
Commit 16cef588 authored by Cam Saül's avatar Cam Saül
Browse files

Merge pull request #234 from metabase/fix-upd-non-nil-keys

fix upd-non-nil-keys
parents d4424da1 57eef8ad
No related branches found
No related tags found
No related merge requests found
......@@ -148,9 +148,9 @@
(> 0))))
(defn upd-non-nil-keys
"Calls `upd`, but filters out KWARGS with null values."
"Calls `upd`, but filters out KWARGS with `nil` values."
[entity entity-id & {:as kwargs}]
(->> (m/filter-vals identity kwargs)
(->> (m/filter-vals (complement nil?) kwargs)
(m/mapply upd entity entity-id)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment