Merge pull request #2767 from SamantazFox/fix-subscriptions-not-cleared

Fix subscription not being cleared
This commit is contained in:
Samantaz Fox 2022-01-06 14:17:33 +01:00 committed by GitHub
commit 5a728243a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -143,11 +143,11 @@ module Invidious::Database::Users
def clear_notifications(user : User)
request = <<-SQL
UPDATE users
SET notifications = $1, updated = $2
WHERE email = $3
SET notifications = '{}', updated = $1
WHERE email = $2
SQL
PG_DB.exec(request, [] of String, Time.utc, user)
PG_DB.exec(request, Time.utc, user.email)
end
# -------------------