mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 20:36:21 +00:00
fix: usar la fecha de creación del deploy
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
para saber si hubo publicaciones después de su creación. no usamos la fecha de modificación porque la configuración manual solo los crea o los elimina y los métodos pueden automodificarse durante la publicación.
This commit is contained in:
parent
3f4517b427
commit
04ad7e2324
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class Site
|
|||
#
|
||||
# @return [Time]
|
||||
def last_deploy_time
|
||||
deploys.order(updated_at: :desc).select(:updated_at).first&.updated_at || updated_at
|
||||
deploys.order(created_at: :desc).select(:created_at).first&.created_at || updated_at
|
||||
end
|
||||
|
||||
# Encuentra la fecha de última publicación exitosa, si no hay
|
||||
|
|
Loading…
Reference in a new issue