mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
DB: fix subscription not being cleared
Fixes https://github.com/iv-org/invidious/issues/2764
This commit is contained in:
parent
3bb7fbb2f1
commit
bf0a48847c
1 changed files with 3 additions and 3 deletions
|
@ -143,11 +143,11 @@ module Invidious::Database::Users
|
||||||
def clear_notifications(user : User)
|
def clear_notifications(user : User)
|
||||||
request = <<-SQL
|
request = <<-SQL
|
||||||
UPDATE users
|
UPDATE users
|
||||||
SET notifications = $1, updated = $2
|
SET notifications = '{}', updated = $1
|
||||||
WHERE email = $3
|
WHERE email = $2
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
PG_DB.exec(request, [] of String, Time.utc, user)
|
PG_DB.exec(request, Time.utc, user.email)
|
||||||
end
|
end
|
||||||
|
|
||||||
# -------------------
|
# -------------------
|
||||||
|
|
Loading…
Reference in a new issue