enable API errors

This commit is contained in:
Pete Matsyburka
2024-01-26 22:26:52 +02:00
parent 6c35ff6d1c
commit 12ccf622c1
@@ -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?