From 0ae43e242fb6284d66f3e18249560cdcea225ef5 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Fri, 29 Mar 2019 10:03:13 -0500 Subject: [PATCH] Fix pubsub job for newly added channels --- src/invidious/jobs.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/jobs.cr b/src/invidious/jobs.cr index 54749f87..a217c1af 100644 --- a/src/invidious/jobs.cr +++ b/src/invidious/jobs.cr @@ -106,7 +106,7 @@ def subscribe_to_feeds(db, logger, key, config) if config.use_pubsub_feeds spawn do loop do - db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > '4 days'") do |rs| + db.query_all("SELECT id FROM channels WHERE CURRENT_TIMESTAMP - subscribed > '4 days' OR subscribed IS NULL") do |rs| rs.each do ucid = rs.read(String) response = subscribe_pubsub(ucid, key, config)