mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-01 04:21:16 +00:00
db: use now() function instead of passing Time.utc
This commit is contained in:
@@ -10,12 +10,12 @@ module Invidious::Database::SessionIDs
|
||||
def insert(sid : String, email : String, handle_conflicts : Bool = false)
|
||||
request = <<-SQL
|
||||
INSERT INTO session_ids
|
||||
VALUES ($1, $2, $3)
|
||||
VALUES ($1, $2, now())
|
||||
SQL
|
||||
|
||||
request += " ON CONFLICT (id) DO NOTHING" if handle_conflicts
|
||||
|
||||
PG_DB.exec(request, sid, email, Time.utc)
|
||||
PG_DB.exec(request, sid, email)
|
||||
end
|
||||
|
||||
# -------------------
|
||||
|
||||
Reference in New Issue
Block a user