mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-23 20:21:50 +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]
|
# @return [Boolean]
|
||||||
def awaiting_publication?
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue