forked from Gitlink/forgeplus
fix: 修复流水线stopped为0的情况
This commit is contained in:
parent
6b7d8c0544
commit
ae1b6fa458
|
|
@ -46,7 +46,7 @@ class Api::Pm::PipelinesController < Api::Pm::BaseController
|
|||
index: last_action_run.index,
|
||||
status: last_action_run.status,
|
||||
started: last_action_run.started.zero? ? Time.now.to_i : last_action_run.started,
|
||||
stopped: last_action_run.stopped,
|
||||
stopped: last_action_run.stopped.zero? ? Time.now.to_i : last_action_run.stopped,
|
||||
length: last_action_run.stopped.zero? ? 0 : last_action_run.stopped-last_action_run.started,
|
||||
created: last_action_run.created,
|
||||
updated: last_action_run.updated,
|
||||
|
|
|
|||
Loading…
Reference in New Issue