From 7ffc3a06520fd955e807ff2851bbb4e86414da00 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 27 Feb 2019 17:31:17 -0600 Subject: [PATCH] Set updated for deleted 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 dd782727..e000540a 100644 --- a/src/invidious/jobs.cr +++ b/src/invidious/jobs.cr @@ -73,7 +73,7 @@ def refresh_channels(db, logger, max_threads = 1, full_refresh = false) db.exec("UPDATE channels SET updated = $1, author = $2, deleted = false WHERE id = $3", Time.now, channel.author, id) rescue ex if ex.message == "Deleted or invalid channel" - db.exec("UPDATE channels SET deleted = true WHERE id = $1", id) + db.exec("UPDATE channels SET updated = $1, deleted = true WHERE id = $2", Time.now, id) end logger.write("#{id} : #{ex.message}\n") end