fix download ttl

This commit is contained in:
Pete Matsyburka committed 2024-04-20 23:58:43 +03:00
1 parent f8ec3daf10
commit e78dd301ef
1 file changed
+1 -1
@@ -44,7 +44,7 @@ class SubmissionsDownloadController < ApplicationController
def build_urls(submitter)
Submitters.select_attachments_for_download(submitter).map do |attachment|
ActiveStorage::Blob.proxy_url(attachment.blob, expires_at: FILES_TTL.minutes.from_now.to_i)
ActiveStorage::Blob.proxy_url(attachment.blob, expires_at: FILES_TTL.from_now.to_i)
end
end
end