v3 more trying to get the payload right
This commit is contained in:
parent
f3b8258b53
commit
38b73f53cb
|
@ -14,11 +14,8 @@ module Travis::API::V3
|
||||||
end
|
end
|
||||||
|
|
||||||
def restart(user)
|
def restart(user)
|
||||||
payload = {
|
payload = {id: id, user_id: user.id, source: 'api'}
|
||||||
build: { id: id },
|
perform_async(:build_restart, type: 'api'.freeze, payload: payload)
|
||||||
user: { id: user.id }
|
|
||||||
}
|
|
||||||
perform_async(:build_restart, type: 'api'.freeze, payload: JSON.dump(payload))
|
|
||||||
payload
|
payload
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user