https not http

This commit is contained in:
2022-01-17 09:07:25 -08:00
parent 1f96868ee1
commit d4bd4e45fb
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@
(mapcat (fn [k] (mapcat (fn [k]
(try (try
(let [invoice-key (str "invoice-files/" (UUID/randomUUID) ".csv") (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) (s3/copy-object {:source-bucket-name (:data-bucket env)
:destination-bucket-name (:data-bucket env) :destination-bucket-name (:data-bucket env)
:source-key k :source-key k

View File

@@ -416,7 +416,7 @@
:client-override client :client-override client
:location-override location :location-override location
:vendor-override vendor :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-website-us-east-1.amazonaws.com/"
s3-location))))] s3-location))))]
(import-uploaded-invoice user imports)) (import-uploaded-invoice user imports))