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