DB: Move a forgotten 'UPDATE channels' statement

This commit is contained in:
Samantaz Fox committed 2022-01-25 23:42:36 +01:00
1 parent 2ae074a9a4
commit 5ad2fc64b4
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -42,6 +42,16 @@ module Invidious::Database::Channels
PG_DB.exec(request, Time.utc, author, id)
end
def update_subscription_time(id : String)
request = <<-SQL
UPDATE channels
SET subscribed = $1
WHERE id = $2
SQL
PG_DB.exec(request, Time.utc, id)
end
def update_mark_deleted(id : String)
request = <<-SQL
UPDATE channels