add template application key

This commit is contained in:
DocuSeal
2023-11-02 19:33:01 +02:00
parent 036f6049a2
commit 14c3c8181b
5 changed files with 25 additions and 15 deletions
@@ -8,6 +8,7 @@ module Api
templates = Templates.search(@templates, params[:q])
templates = params[:archived] ? templates.archived : templates.active
templates = templates.where(application_key: params[:application_key]) if params[:application_key].present?
templates = paginate(templates.preload(:author, documents_attachments: :blob))