enable API errors

This commit is contained in:
Pete Matsyburka committed 2024-01-26 22:26:55 +02:00
1 parent 6c35ff6d1c
commit 12ccf622c1
1 file changed
+1 -1
@@ -63,7 +63,7 @@ module Api
end
def create
Params::SubmissionCreateValidator.call(params, dry_run: true)
Params::SubmissionCreateValidator.call(params, dry_run: !Docuseal.multitenant?)
return render json: { error: 'Template not found' }, status: :unprocessable_entity if @template.nil?