From 48f70ef93de960a6eb73aade57d95b996a9fe557 Mon Sep 17 00:00:00 2001 From: Bryce Date: Mon, 18 Dec 2023 11:30:26 -0800 Subject: [PATCH] hopefully fixes check issue. --- src/clj/auto_ap/graphql/checks.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clj/auto_ap/graphql/checks.clj b/src/clj/auto_ap/graphql/checks.clj index def1b150..acf1bff1 100644 --- a/src/clj/auto_ap/graphql/checks.clj +++ b/src/clj/auto_ap/graphql/checks.clj @@ -217,7 +217,7 @@ :input-stream (io/make-input-stream (.toByteArray merged-pdf-stream) {}) :metadata {:content-length (count (.toByteArray merged-pdf-stream)) :content-type "application/pdf"}) - (str "http://" (:data-bucket env) ".s3-website-us-east-1.amazonaws.com/merged-checks/" uuid ".pdf"))) + (str "https://" (:data-bucket env) "/merged-checks/" uuid ".pdf"))) #_{:clj-kondo/ignore [:unused-binding]} (defmulti invoices->entities (fn [invoices vendor-id client bank-account type index invoice-amounts] @@ -261,7 +261,7 @@ (assoc base-payment :payment/s3-uuid (when (> (:payment/amount base-payment) 0) uuid) :payment/s3-key (when (> (:payment/amount base-payment) 0) (str "checks/" uuid ".pdf")) - :payment/s3-url (when (> (:payment/amount base-payment) 0) (str "http://" (:data-bucket env) ".s3-website-us-east-1.amazonaws.com/checks/" uuid ".pdf")) + :payment/s3-url (when (> (:payment/amount base-payment) 0) (str "https://" (:data-bucket env) "/checks/" uuid ".pdf")) :payment/check-number (+ index (:bank-account/check-number bank-account)) :payment/type :payment-type/check :payment/memo memo