mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add validation for submitters count
This commit is contained in:
1 parent
babaf1aa48
commit
3d2046f227
3 files changed
+30
-7
No files matched your search
@@ -80,7 +80,8 @@ module Api
|
||||
end
|
||||
|
||||
render json: build_create_json(submissions)
|
||||
rescue Submitters::NormalizeValues::BaseError, DownloadUtils::UnableToDownload => e
|
||||
rescue Submitters::NormalizeValues::BaseError, Submissions::CreateFromSubmitters::BaseError,
|
||||
DownloadUtils::UnableToDownload => e
|
||||
Rollbar.warning(e) if defined?(Rollbar)
|
||||
|
||||
render json: { error: e.message }, status: :unprocessable_entity
|
||||
|
||||
Reference in new issue
Block a user