Browse Source

修改compact

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
2f0e402af8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/controllers/repositories_controller.rb

+ 2
- 2
app/controllers/repositories_controller.rb 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


Loading…
Cancel
Save