Worker still gets payload with repository
I tweaked the code to work for both versions, so we can update API flawlessly
This commit is contained in:
parent
37d1348054
commit
94e16ab229
|
@ -19,8 +19,8 @@ require 'travis/model'
|
||||||
).property('state')
|
).property('state')
|
||||||
|
|
||||||
repo: (->
|
repo: (->
|
||||||
Travis.Repo.find(@get('payload.repo.id'))
|
Travis.Repo.find(@get('payload.repository.id') || @get('payload.repo.id'))
|
||||||
).property('payload.repo.id')
|
).property('payload.repository.id', 'payload.repo.id')
|
||||||
|
|
||||||
job_id: (->
|
job_id: (->
|
||||||
@get('payload.job.id')
|
@get('payload.job.id')
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
||||||
5ee7fd14
|
4804c4eb
|
Loading…
Reference in New Issue
Block a user