Skip to content

Commit

Permalink
🐛 Fix incorrect dependency for log-emails and smtp flags
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz authored and Alotor committed Oct 10, 2024
1 parent 370eebe commit b8a606a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/src/app/email.clj
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,13 @@
(l/dbg :hint "sendmail"
:id (:id params)
:to (:to params)
:subject (str/trim (:subject params))
:body (str/join "," (map :type (:body params))))
:subject (str/trim (:subject params)))

(.sendMessage ^Transport transport
^MimeMessage message
(.getAllRecipients message))))))

(when (or (contains? cf/flags :log-emails)
(not (contains? cf/flags :smtp)))
(when (contains? cf/flags :log-emails)
(send-to-logger! cfg params))))

(defmethod ig/pre-init-spec ::handler [_]
Expand Down

0 comments on commit b8a606a

Please sign in to comment.