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
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
591b88d2f3
commit
e4293184d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue