diff --git a/src/metabase/db.clj b/src/metabase/db.clj index 9f42764098b8ba59508e56794548a35a8545c5fa..d89ad22d90ba8c5babab59aa6c1121e143090838 100644 --- a/src/metabase/db.clj +++ b/src/metabase/db.clj @@ -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)))