From 58f66761fb4b89c15de17697a42ee4b594480278 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sun, 29 Oct 2023 16:03:42 -0400 Subject: [PATCH] Format --- src/invidious/database/channels.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/database/channels.cr b/src/invidious/database/channels.cr index 8653959e..21c1ee64 100644 --- a/src/invidious/database/channels.cr +++ b/src/invidious/database/channels.cr @@ -89,7 +89,7 @@ module Invidious::Database::Channels # Select channels sorted by last published video def select_sorted(ids : Array(String)) : Array(InvidiousChannel)? return [] of InvidiousChannel if ids.empty? - + request = <<-SQL WITH max_published AS ( SELECT ucid, MAX(published) AS last_published @@ -101,7 +101,7 @@ module Invidious::Database::Channels WHERE channels.id = ANY($1) ORDER BY max_published.last_published DESC NULLS LAST; SQL - + return PG_DB.query_all(request, ids, as: InvidiousChannel) end end