mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-17 18:18:30 +00:00
remove db arg passed to refresh channels job
This commit is contained in:
parent
7e25ad5e4e
commit
314f49b687
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user