remove db arg passed to refresh channels job

This commit is contained in:
matthewmcgarvey 2022-01-22 09:54:09 -06:00
parent 7e25ad5e4e
commit 314f49b687
3 changed files with 2 additions and 7 deletions

View File

@ -132,7 +132,7 @@ end
# Start jobs
if CONFIG.channel_threads > 0
Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB)
Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new
end
if CONFIG.feed_threads > 0

View File

@ -82,7 +82,7 @@ module Invidious::Database::Channels
SELECT * FROM channels
SQL
return PG_DB.query_all(rqeuest, as: InvidiousChannel)
return PG_DB.query_all(request, as: InvidiousChannel)
end
end

View File

@ -1,9 +1,4 @@
class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
private getter db : DB::Database
def initialize(@db)
end
def begin
max_fibers = CONFIG.channel_threads
lim_fibers = max_fibers