mirror of
https://github.com/iv-org/invidious.git
synced 2024-09-11 01:18:06 +02:00
Remove empty array from get_user
This commit is contained in:
parent
10c1cfa4b5
commit
c3ac257dbf
@ -575,7 +575,7 @@ def get_user(sid, client, headers, db)
|
||||
args = arg_array(user_array)
|
||||
|
||||
db.exec("INSERT INTO users VALUES (#{args}) \
|
||||
ON CONFLICT (email) DO UPDATE SET id = $1, updated = $2, notifications = ARRAY[]::text[], subscriptions = $4", user_array)
|
||||
ON CONFLICT (email) DO UPDATE SET id = $1, updated = $2, notifications = $3, subscriptions = $4", user_array)
|
||||
end
|
||||
else
|
||||
user = fetch_user(sid, client, headers)
|
||||
|
Loading…
Reference in New Issue
Block a user