Cleanup code

This commit is contained in:
Stanko K.R.
2026-01-29 15:26:30 +01:00
parent e0cee2c770
commit eed2b3c8a7
2 changed files with 8 additions and 4 deletions
+7 -3
View File
@@ -1,8 +1,9 @@
class ImportsController < ApplicationController
disallow_account_scope only: %i[ new create ]
layout "public"
disallow_account_scope only: %i[ new create ]
before_action :set_import, only: %i[ show ]
def new
end
@@ -17,10 +18,13 @@ class ImportsController < ApplicationController
end
def show
@import = Current.account.imports.find(params[:id])
end
private
def set_import
@import = Current.account.imports.find(params[:id])
end
def start_import(account)
import = nil
+1 -1
View File
@@ -29,7 +29,7 @@ class Export < ApplicationRecord
end
rescue => e
update!(status: :failed)
raise
raise e
ensure
zipfile&.close
zipfile&.unlink