From 12ccf622c19d34d322357f7c1c83d36d71bc9eb2 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 26 Jan 2024 22:26:52 +0200 Subject: [PATCH] enable API errors --- app/controllers/api/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/submissions_controller.rb b/app/controllers/api/submissions_controller.rb index a88cf8d9..cde69f6d 100644 --- a/app/controllers/api/submissions_controller.rb +++ b/app/controllers/api/submissions_controller.rb @@ -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?