mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
adjust submissions response
This commit is contained in:
1 parent
8fecf94a28
commit
95d48b2808
3 files changed
+33
-18
No files matched your search
@@ -23,7 +23,10 @@ module Api
|
||||
audit_trail_attachment: :blob))
|
||||
|
||||
render json: {
|
||||
data: submissions.as_json(Submissions::SerializeForApi::SERIALIZE_PARAMS),
|
||||
data: submissions.map do |s|
|
||||
Submissions::SerializeForApi.call(s, s.submitters, params,
|
||||
with_events: false, with_documents: false, with_values: false)
|
||||
end,
|
||||
pagination: {
|
||||
count: submissions.size,
|
||||
next: submissions.last&.id,
|
||||
|
||||
Reference in new issue
Block a user