add subfolders

This commit is contained in:
Pete Matsyburka authored and GitHub committed 2025-07-20 08:28:19 +03:00
1 parent 69d63ecffe
commit ec944a2283
35 files changed
+431 -109

No files matched your search

@@ -11,8 +11,9 @@ module Api
params[:before] = Time.zone.at(params[:before].to_i) if params[:before].present?
submitters = paginate(
submitters.preload(template: :folder, submission: [:submitters, { audit_trail_attachment: :blob,
combined_document_attachment: :blob }],
submitters.preload(template: { folder: :parent_folder },
submission: [:submitters, { audit_trail_attachment: :blob,
combined_document_attachment: :blob }],
documents_attachments: :blob, attachments_attachments: :blob),
field: :completed_at
)