mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add error message when template not found
This commit is contained in:
1 parent
9b789889fa
commit
82f679c84c
1 file changed
+2
@@ -63,6 +63,8 @@ module Api
|
||||
end
|
||||
|
||||
def create
|
||||
return render json: { error: 'Template not found' }, status: :unprocessable_entity if @template.nil?
|
||||
|
||||
params[:send_email] = true unless params.key?(:send_email)
|
||||
params[:send_sms] = false unless params.key?(:send_sms)
|
||||
|
||||
|
||||
Reference in new issue
Block a user