Fix image uploading broken in previous commits.

This commit is contained in:
Andrey Antukh 2016-10-09 21:06:20 +02:00
parent 841e178c15
commit 720178c03f
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

@ -180,8 +180,7 @@
(defrecord ImageCreated [item] (defrecord ImageCreated [item]
rs/UpdateEvent rs/UpdateEvent
(-apply-update [_ state] (-apply-update [_ state]
(update-in state [:image-colls-by-id (:collection item) :images] (update state :images-by-id assoc (:id item) item)))
#(conj % item))))
(defn image-created (defn image-created
[item] [item]