mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Switch to #sort_by! in pull_popular_videos job
This commit is contained in:
parent
17e481c107
commit
e2bbc9a6fa
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Invidious::Jobs::PullPopularVideosJob < Invidious::Jobs::BaseJob
|
|||
def begin
|
||||
loop do
|
||||
videos = db.query_all(QUERY, as: ChannelVideo)
|
||||
.sort_by(&.published)
|
||||
.sort_by!(&.published)
|
||||
.reverse!
|
||||
|
||||
POPULAR_VIDEOS.set(videos)
|
||||
|
|
Loading…
Reference in a new issue