payload.job.id is not always present in worker:updated event

This commit is contained in:
Piotr Sarnacki 2012-10-27 03:43:01 +02:00
parent d3d7f6b83c
commit fee6fc6cad
4 changed files with 5 additions and 5 deletions

View File

@ -19,8 +19,8 @@ require 'travis/model'
).property('state')
jobId: (->
@get('payload.job.id')
).property('payload.job.id')
@get('payload.build.id') || @get('payload.job.id')
).property('payload.job.id', 'payload.build.id')
job: (->
Travis.Job.find @get('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 @@
0e66cadb
3f6f1305