Skip to content

Commit

Permalink
AE-2038: Set the keys for aineistot to correspond to the API paths
Browse files Browse the repository at this point in the history
An alternative to this would be to create a CloudFront function to
remove the /api/signed part but it seems that it would introduce
unnecessary complexities
  • Loading branch information
solita-juhohaa committed Jan 4, 2024
1 parent 6fcbea4 commit bbf5e08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
(defn update-aineisto-in-s3! [db whoami aws-s3-client aineisto-id]
(log/info (str "Starting updating of aineisto (id: " aineisto-id ")."))
(let [csv-reducible-query (aineisto-reducible-query db whoami aineisto-id)
key (str "/aineistot/" aineisto-id "/energiatodistukset.csv")
key (str "/api/signed/aineistot/" aineisto-id "/energiatodistukset.csv")
;; This part is used to store rows until it reaches 5MB which
;; is the minimum requirement by `upload-part-fn`.
current-part (ByteBuffer/allocate (* 8 1024 1024))
Expand Down

0 comments on commit bbf5e08

Please sign in to comment.