Use durationFrom as durationFromHelper
This commit is contained in:
parent
1e9d136911
commit
429d580b00
|
@ -7,7 +7,7 @@ EnvVar = Travis.EnvVar
|
|||
Build = Travis.Build
|
||||
SshKey = Travis.SshKey
|
||||
Event = Travis.Event
|
||||
durationFrom = Travis.Helpers.durationFrom
|
||||
durationFromHelper = Travis.Helpers.durationFrom
|
||||
Ajax = Travis.ajax
|
||||
|
||||
Repo = Model.extend
|
||||
|
@ -105,7 +105,7 @@ Repo = Model.extend
|
|||
|
||||
lastBuildDuration: (->
|
||||
duration = @get('_lastBuildDuration')
|
||||
duration = durationFrom(@get('lastBuildStartedAt'), @get('lastBuildFinishedAt')) unless duration
|
||||
duration = durationFromHelper(@get('lastBuildStartedAt'), @get('lastBuildFinishedAt')) unless duration
|
||||
duration
|
||||
).property('_lastBuildDuration', 'lastBuildStartedAt', 'lastBuildFinishedAt')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user