expire download links

This commit is contained in:
Pete Matsyburka committed 2025-09-01 11:59:02 +03:00
1 parent 02c7cdcd97
commit c4a693846e
26 files changed
+184 -78

No files matched your search

+3 -1
View File
@@ -14,9 +14,11 @@ module Api
documents_attachments: :blob, attachments_attachments: :blob)
)
expires_at = Accounts.link_expires_at(current_account)
render json: {
data: submitters.map do |s|
Submitters::SerializeForApi.call(s, with_template: true, with_events: true, params:)
Submitters::SerializeForApi.call(s, with_template: true, with_events: true, params:, expires_at:)
end,
pagination: {
count: submitters.size,