5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-18 23:36:22 +00:00

fix: usar los posts indexados para obtener la diferencia
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-04-20 21:14:12 -03:00
parent fde1530b2c
commit 591b88d2f3

View file

@ -45,7 +45,7 @@ class Site
#
# @return [Boolean]
def awaiting_publication?
waiting? && updated_at > (build_stats.jekyll.where(status: true).last&.created_at || updated_at)
waiting? && updated_at >= (indexed_posts.order(updated_at: :desc).select(:created_at).first&.created_at || 1.second.ago)
end
end
end