diff --git a/src/clj/auto_ap/background/sysco.clj b/src/clj/auto_ap/background/sysco.clj index b01a52f6..ffe42769 100644 --- a/src/clj/auto_ap/background/sysco.clj +++ b/src/clj/auto_ap/background/sysco.clj @@ -127,7 +127,7 @@ (mapcat (fn [k] (try (let [invoice-key (str "invoice-files/" (UUID/randomUUID) ".csv") - invoice-url (str "https://" (:data-bucket env) ".s3-website-us-east-1.amazonaws.com/" invoice-key)] + invoice-url (str "http://" (:data-bucket env) ".s3-website-us-east-1.amazonaws.com/" invoice-key)] (s3/copy-object {:source-bucket-name (:data-bucket env) :destination-bucket-name (:data-bucket env) :source-key k diff --git a/src/clj/auto_ap/routes/invoices.clj b/src/clj/auto_ap/routes/invoices.clj index f01b3132..c3e09dd8 100644 --- a/src/clj/auto_ap/routes/invoices.clj +++ b/src/clj/auto_ap/routes/invoices.clj @@ -416,7 +416,7 @@ :client-override client :location-override location :vendor-override vendor - :source-url (str "https://" (:data-bucket env) + :source-url (str "http://" (:data-bucket env) ".s3-website-us-east-1.amazonaws.com/" s3-location))))] (import-uploaded-invoice user imports))