Browse Source

fixed educode not owner

tags/v4.0.0^2
xiaoxiaoqiong 4 years ago
parent
commit
a26d8be0b0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/repositories_controller.rb

+ 1
- 1
app/controllers/repositories_controller.rb View File

@@ -80,10 +80,10 @@ class RepositoriesController < ApplicationController
"commits" => [{}]
}
else
@path = Gitea.gitea_config[:domain]+"/#{@project.owner.login}/#{@project.identifier}/raw/branch/#{@ref}/"
@sub_entries = Educoder::Repository::Entries::ListService.call(@project&.project_educoder&.repo_name, {path: file_path_uri})
end
else
@path = Gitea.gitea_config[:domain]+"/#{@project.owner.login}/#{@project.identifier}/raw/branch/#{@ref}/"
interactor = Repositories::EntriesInteractor.call(@owner, @project.identifier, file_path_uri, ref: @ref)
if interactor.success?
result = interactor.result


Loading…
Cancel
Save