mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-01 05:06:28 +00:00
db: use now() function instead of passing Time.utc
This commit is contained in:
@@ -143,11 +143,11 @@ module Invidious::Database::Users
|
||||
def clear_notifications(user : User)
|
||||
request = <<-SQL
|
||||
UPDATE users
|
||||
SET notifications = '{}', updated = $1
|
||||
WHERE email = $2
|
||||
SET notifications = '{}', updated = now()
|
||||
WHERE email = $1
|
||||
SQL
|
||||
|
||||
PG_DB.exec(request, Time.utc, user.email)
|
||||
PG_DB.exec(request, user.email)
|
||||
end
|
||||
|
||||
# -------------------
|
||||
|
||||
Reference in New Issue
Block a user