mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Update channel when fetched by thread
This commit is contained in:
parent
8ed9624e0a
commit
cc047bb5e5
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@ channel_threads.times do |i|
|
|||
begin
|
||||
id = rs.read(String)
|
||||
channel = fetch_channel(id, client, PG_DB, false)
|
||||
PG_DB.exec("UPDATE channels SET updated = $1 WHERE id = $2", Time.now, id)
|
||||
rescue ex
|
||||
STDOUT << id << " : " << ex.message << "\n"
|
||||
next
|
||||
|
|
Loading…
Reference in a new issue