remove token from perform_async call

This commit is contained in:
Steffen Kötte 2016-01-21 10:40:43 +01:00
parent da33cff0eb
commit 4704992a18

View File

@ -15,13 +15,10 @@ module Travis::API::V3
payload = {
repository: { id: branch.repository.github_id, owner_name: branch.repository.owner_name, name: branch.repository.name },
user: { id: user.id },
message: '',
branch: branch,
config: {}
branch: branch
}
token = "TODO: Figure out where to get this (branch.repository.owner ?)"
perform_async(:build_request, type: 'cron'.freeze, credentials: { token: token }, payload: JSON.dump(payload))
perform_async(:build_request, type: 'cron'.freeze, payload: JSON.dump(payload))
payload
end