fix demo mode

This commit is contained in:
Alex Turchyn
2023-07-12 23:56:42 +03:00
parent 4ffd198505
commit 03ad848d45
5 changed files with 12 additions and 4 deletions
@@ -3,6 +3,8 @@
module Api
class TemplatesDocumentsController < ApiBaseController
def create
return head :unprocessable_entity if params[:blobs].blank? && params[:files].blank?
@template = current_account.templates.find(params[:template_id])
documents =