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

fixup! 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:16:12 -03:00
parent 591b88d2f3
commit e4293184d2

View file

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