修改compact

This commit is contained in:
sylor_huang@126.com 2020-03-24 09:56:21 +08:00
parent 5a426fc149
commit 2f0e402af8
1 changed files with 2 additions and 2 deletions

View File

@ -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