mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
add template api folder filters
This commit is contained in:
1 parent
2cda9cd736
commit
30c913b54f
2 files changed
+5
No files matched your search
@@ -9,6 +9,7 @@ module Api
|
||||
|
||||
templates = params[:archived] ? templates.archived : templates.active
|
||||
templates = templates.where(application_key: params[:application_key]) if params[:application_key].present?
|
||||
templates = templates.joins(:folder).where(folder: { name: params[:folder] }) if params[:folder].present?
|
||||
|
||||
templates = paginate(templates.preload(:author, documents_attachments: :blob))
|
||||
|
||||
|
||||
Reference in new issue
Block a user