mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Fix pubsub job for newly added channels
This commit is contained in:
parent
bafd4f1860
commit
0ae43e242f
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ def subscribe_to_feeds(db, logger, key, config)
|
||||||
if config.use_pubsub_feeds
|
if config.use_pubsub_feeds
|
||||||
spawn do
|
spawn do
|
||||||
loop 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
|
rs.each do
|
||||||
ucid = rs.read(String)
|
ucid = rs.read(String)
|
||||||
response = subscribe_pubsub(ucid, key, config)
|
response = subscribe_pubsub(ucid, key, config)
|
||||||
|
|
Loading…
Reference in a new issue