fixed reposyncer job_logs
This commit is contained in:
parent
14f4b290cb
commit
99ba523084
|
@ -124,11 +124,7 @@ class ObRepositorySync::ApiService < ApplicationService
|
||||||
response = http.request(request)
|
response = http.request(request)
|
||||||
Rails.logger.info "set_commit job response.read_body======#{response.read_body}"
|
Rails.logger.info "set_commit job response.read_body======#{response.read_body}"
|
||||||
res = JSON.parse(response.body)
|
res = JSON.parse(response.body)
|
||||||
if res["code"].to_s == "200"
|
res
|
||||||
res["data"]
|
|
||||||
else
|
|
||||||
[]
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def pull_requests
|
def pull_requests
|
||||||
|
|
Loading…
Reference in New Issue