mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-28 23:48:31 +00:00
Update sessions.cr
This commit is contained in:
parent
ef26297899
commit
56852d1e72
@ -62,7 +62,7 @@ module Invidious::Database::SessionIDs
|
|||||||
PG_DB.query_one?(request, sid, as: String)
|
PG_DB.query_one?(request, sid, as: String)
|
||||||
end
|
end
|
||||||
|
|
||||||
def select_one(sid : String) : {session: String, issued: Time}
|
def select_one(sid : String) : {session: String, issued: Time}?
|
||||||
request = <<-SQL
|
request = <<-SQL
|
||||||
SELECT id, issued FROM session_ids
|
SELECT id, issued FROM session_ids
|
||||||
WHERE id = $1
|
WHERE id = $1
|
||||||
|
Loading…
Reference in New Issue
Block a user