mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-23 00:29:53 +05:30
Switch to #sort_by! in pull_popular_videos job
This commit is contained in:
parent
17e481c107
commit
e2bbc9a6fa
@ -15,7 +15,7 @@ class Invidious::Jobs::PullPopularVideosJob < Invidious::Jobs::BaseJob
|
|||||||
def begin
|
def begin
|
||||||
loop do
|
loop do
|
||||||
videos = db.query_all(QUERY, as: ChannelVideo)
|
videos = db.query_all(QUERY, as: ChannelVideo)
|
||||||
.sort_by(&.published)
|
.sort_by!(&.published)
|
||||||
.reverse!
|
.reverse!
|
||||||
|
|
||||||
POPULAR_VIDEOS.set(videos)
|
POPULAR_VIDEOS.set(videos)
|
||||||
|
Loading…
Reference in New Issue
Block a user