mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:36:22 +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
|
||||
@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] = {
|
||||
status: d.deploy,
|
||||
seconds: d.build_stats.last.seconds,
|
||||
size: d.build_stats.last.size,
|
||||
status: status,
|
||||
seconds: build_stat.try(:seconds) || 0,
|
||||
size: build_stat.try(:size) || 0,
|
||||
url: d.url
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue