diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-27 17:31:17 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-27 17:31:17 -0600 |
| commit | 7ffc3a06520fd955e807ff2851bbb4e86414da00 (patch) | |
| tree | 600e5554c2ae79a74a2e716e02c64147576733b4 /src | |
| parent | 51df0860ccc8e16f7ed86e26812822e086cc4c15 (diff) | |
| download | invidious-7ffc3a06520fd955e807ff2851bbb4e86414da00.tar.gz invidious-7ffc3a06520fd955e807ff2851bbb4e86414da00.tar.bz2 invidious-7ffc3a06520fd955e807ff2851bbb4e86414da00.zip | |
Set updated for deleted channels
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/jobs.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
