Fix: add recipe :steps --> :grubs

This commit is contained in:
Nicholas Kariniemi 2013-10-21 23:44:48 +03:00
parent 4a07d98fe9
commit 307c6cfad5

View file

@ -45,7 +45,7 @@
(defmethod handle-event :add-recipe [event] (defmethod handle-event :add-recipe [event]
(let [recipe (-> event (let [recipe (-> event
(select-keys [:id :name :steps]) (select-keys [:id :name :grubs])
(clojure.set/rename-keys {:id :_id}))] (clojure.set/rename-keys {:id :_id}))]
(mc/insert recipe-collection recipe))) (mc/insert recipe-collection recipe)))