[deprecations] Use peekRecord instead of getById

This commit is contained in:
Piotr Sarnacki 2015-11-30 14:37:52 +01:00
parent 842c050100
commit bdcb906fe0

View File

@ -44,7 +44,7 @@ TravisPusher.prototype.receive = (event, data) ->
# TODO remove job:requeued, once sf-restart-event has been merged
# TODO this also needs to clear logs on build:created if matrix jobs are already loaded
if event == 'job:created' || event == 'job:requeued'
if job = @store.getById('job', data.job.id)
if job = @store.peekRecord('job', data.job.id)
job.clearLog()
Ember.run.next =>