mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-22 08:09:51 +05:30
Merge pull request #2767 from SamantazFox/fix-subscriptions-not-cleared
Fix subscription not being cleared
This commit is contained in:
commit
5a728243a2
@ -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
|
||||
|
||||
# -------------------
|
||||
|
Loading…
Reference in New Issue
Block a user