From e2bbc9a6fa401fb969130251ea1a67003051a667 Mon Sep 17 00:00:00 2001 From: syeopite Date: Sun, 26 Sep 2021 15:04:33 -0700 Subject: [PATCH] Switch to #sort_by! in pull_popular_videos job --- src/invidious/jobs/pull_popular_videos_job.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/jobs/pull_popular_videos_job.cr b/src/invidious/jobs/pull_popular_videos_job.cr index 805016fd..38de816e 100644 --- a/src/invidious/jobs/pull_popular_videos_job.cr +++ b/src/invidious/jobs/pull_popular_videos_job.cr @@ -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)