s/when/if
This commit is contained in:
parent
56d52a5beb
commit
f185391ed2
|
@ -34,7 +34,7 @@
|
||||||
(if note-msg
|
(if note-msg
|
||||||
(let [note (:payload note-msg)]
|
(let [note (:payload note-msg)]
|
||||||
(if (t/validate Notification note)
|
(if (t/validate Notification note)
|
||||||
(when (>= (:urgency note) urgency-threshold)
|
(if (>= (:urgency note) urgency-threshold)
|
||||||
(notify/send-notification! mqtt-client
|
(notify/send-notification! mqtt-client
|
||||||
(-> note
|
(-> note
|
||||||
(assoc :app app)
|
(assoc :app app)
|
||||||
|
|
Loading…
Reference in New Issue