mirror of
https://0xacab.org/sutty/sutty
synced 2025-01-19 19:43:38 +00:00
algunos deploys no generan build_stats
This commit is contained in:
parent
9286670424
commit
9024a13490
1 changed files with 6 additions and 3 deletions
|
@ -67,10 +67,13 @@ class DeployJob < ApplicationJob
|
||||||
|
|
||||||
def deploy_others
|
def deploy_others
|
||||||
@site.deploys.where.not(type: 'DeployLocal').find_each do |d|
|
@site.deploys.where.not(type: 'DeployLocal').find_each do |d|
|
||||||
|
status = d.deploy
|
||||||
|
build_stat = d.build_stats.last
|
||||||
|
|
||||||
@deployed[d.type.underscore.to_sym] = {
|
@deployed[d.type.underscore.to_sym] = {
|
||||||
status: d.deploy,
|
status: status,
|
||||||
seconds: d.build_stats.last.seconds,
|
seconds: build_stat.try(:seconds) || 0,
|
||||||
size: d.build_stats.last.size,
|
size: build_stat.try(:size) || 0,
|
||||||
url: d.url
|
url: d.url
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue