fixed reposyncer job_logs
This commit is contained in:
parent
5ffc603f61
commit
14f4b290cb
|
@ -107,7 +107,7 @@ class ObRepositorySyncsController < ApplicationController
|
||||||
tip_exception "该项目未创建同步任务" if @ob_repository_sync.blank?
|
tip_exception "该项目未创建同步任务" if @ob_repository_sync.blank?
|
||||||
tip_exception "缺少参数job_id" if params[:job_id].blank?
|
tip_exception "缺少参数job_id" if params[:job_id].blank?
|
||||||
service = ObRepositorySync::ApiService.new(@ob_repository_sync.name)
|
service = ObRepositorySync::ApiService.new(@ob_repository_sync.name)
|
||||||
@data = service.job_logs params[:job_id]
|
res = service.job_logs params[:job_id]
|
||||||
tip_exception "请求错误: #{res["msg"]}" if res["code"].to_s != "200"
|
tip_exception "请求错误: #{res["msg"]}" if res["code"].to_s != "200"
|
||||||
render_ok(count: res["data"]["total"], data: res["data"]["list"])
|
render_ok(count: res["data"]["total"], data: res["data"]["list"])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue