final changes
This commit is contained in:
parent
4cccb94af1
commit
160a8312d4
|
@ -61,7 +61,7 @@ class Api::V1::JobsController < Api::V1::BaseController
|
|||
name = params[:name]
|
||||
if name =~ /abfworker::rpm-worker/
|
||||
if current_user.system? || current_user.id == BuildList.where(id: name.gsub(/[^\d]/, '')).first.try(:builder_id)
|
||||
BuildList.log_server.setex name, 15, params[:logs]
|
||||
res = BuildList.log_server.setex name, 15, params[:logs]
|
||||
end
|
||||
end
|
||||
render nothing: true
|
||||
|
|
|
@ -18,7 +18,7 @@ module Project::GithubApi
|
|||
end
|
||||
|
||||
def github_get_organization
|
||||
return APP_CONFIG['github_organization'] if github_organization.empty?
|
||||
github_organization
|
||||
return github_organization if github_organization.presence
|
||||
APP_CONFIG['github_organization']
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue