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
|
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 a new issue