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:
Piotr Sarnacki 2012-10-08 17:32:04 +02:00
parent 37d1348054
commit 94e16ab229
4 changed files with 5 additions and 5 deletions

View File

@ -19,8 +19,8 @@ require 'travis/model'
).property('state')
repo: (->
Travis.Repo.find(@get('payload.repo.id'))
).property('payload.repo.id')
Travis.Repo.find(@get('payload.repository.id') || @get('payload.repo.id'))
).property('payload.repository.id', 'payload.repo.id')
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

View File

@ -1 +1 @@
5ee7fd14
4804c4eb