Skip to content

Commit

Permalink
Use S3_BUCKET if set for processing payment CSV (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beck authored Sep 14, 2023
1 parent 381e0e9 commit 6536b34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/payment_history/csv_importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def fetch_from_s3(filename)
temp_files[:s3_download] = Tempfile.new("s3_download")
s3 = Aws::S3::Client.new
s3.get_object({
bucket: "partner-metrics",
bucket: ENV.fetch("S3_BUCKET", "partner-metrics"),
key: filename
},
target: temp_files[:s3_download].path)
Expand Down

0 comments on commit 6536b34

Please sign in to comment.