diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index f0e36f281..54e383735 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -58,7 +58,7 @@ class RepositoriesController < ApplicationController def update_file Rails.logger.info("##################_________params_____________#########{params}") - interactor = Gitea::UpdateFileInteractor.call(current_user, params.merge(identifier: @project.identifier).compact) + interactor = Gitea::UpdateFileInteractor.call(current_user, params.merge(identifier: @project.identifier)) if interactor.success? @file = interactor.result else @@ -67,7 +67,7 @@ class RepositoriesController < ApplicationController end def delete_file - interactor = Gitea::DeleteFileInteractor.call(current_user, params.merge(identifier: @project.identifier).compact) + interactor = Gitea::DeleteFileInteractor.call(current_user, params.merge(identifier: @project.identifier)) if interactor.success? @file = interactor.result else