5
0
Fork 0
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:
f 2022-04-06 20:48:14 -03:00
parent 9286670424
commit 9024a13490

View file

@ -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