fix printing type symbol as event name

This commit is contained in:
Roman Volosovskyi 2017-10-06 08:50:27 +02:00
parent e66ae8b388
commit 91bb69c6f7
1 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@
(fn [_ _] (fn [_ _]
{::get-fcm-token-fx nil})) {::get-fcm-token-fx nil}))
(defn handle-jail-signal [{:keys[chat_id data]}] (defn handle-jail-signal [{:keys [chat_id data]}]
(let [{:keys [event data]} (types/json->clj data)] (let [{:keys [event data]} (types/json->clj data)]
(case event (case event
"local-storage" (dispatch [:set-local-storage {:chat-id chat_id "local-storage" (dispatch [:set-local-storage {:chat-id chat_id
@ -310,7 +310,7 @@
;; TODO(janherich): figure out and fix chat_id from event ;; TODO(janherich): figure out and fix chat_id from event
(dispatch [:command-handler! (:chat-id orig-params) orig-params (dispatch [:command-handler! (:chat-id orig-params) orig-params
{:result {:returned (dissoc data :origParams)}}])) {:result {:returned (dissoc data :origParams)}}]))
(log/debug "Unknown jail signal " type)))) (log/debug "Unknown jail signal " event))))
(register-handler-fx (register-handler-fx
:signal-event :signal-event