Resets selected on page change, adds account number to drop downs and makes missing emails less noisy

This commit is contained in:
2024-08-22 21:14:43 -07:00
parent 2d6985f5ca
commit d9bd09a9cc
4 changed files with 10 additions and 6 deletions

View File

@@ -50,7 +50,7 @@
:bucket-name (-> r :s3 :bucket :name)}}
(doseq [pdf-stream (->> (-> mail :body)
(filter :content-type)
#_(filter #(re-find #"application/pdf" (:content-type %))))
(filter (complement #(re-find #"html" (:content-type % "")))))
:let [filename (str "/tmp/" (UUID/randomUUID) ".pdf")]]
(try
(let [_ (io/copy (:body pdf-stream) (io/file filename))