mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
adjust template clone response
This commit is contained in:
1 parent
e9277f4eeb
commit
57c7dc1b5e
1 file changed
+1
-10
@@ -20,16 +20,7 @@ module Api
|
||||
|
||||
Templates::CloneAttachments.call(template: cloned_template, original_template: @template)
|
||||
|
||||
render json: cloned_template.as_json(serialize_params)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def serialize_params
|
||||
{
|
||||
include: { author: { only: %i[id email first_name last_name] },
|
||||
documents: { only: %i[id uuid], methods: %i[url filename] } }
|
||||
}
|
||||
render json: Templates::SerializeForApi.call(cloned_template)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user