final changes

This commit is contained in:
duratarskeyk 2015-12-15 23:13:31 +00:00
parent 4cccb94af1
commit 160a8312d4
3 changed files with 3 additions and 3 deletions

View File

View File

@ -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

View File

@ -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