mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-10-31 12:42:09 +00:00 
			
		
		
		
	Switch to #sort_by! in pull_popular_videos job
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syeopite
					syeopite