mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
add base API error messages
This commit is contained in:
1 parent
0a00fe6ab8
commit
f9ccca1376
4 files changed
+192
No files matched your search
@@ -63,6 +63,8 @@ module Api
|
||||
end
|
||||
|
||||
def create
|
||||
Params::SubmissionCreateValidator.call(params, dry_run: true)
|
||||
|
||||
return render json: { error: 'Template not found' }, status: :unprocessable_entity if @template.nil?
|
||||
|
||||
if @template.fields.blank?
|
||||
|
||||
Reference in new issue
Block a user