修改compact
This commit is contained in:
parent
5a426fc149
commit
2f0e402af8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue