summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-04-03 17:08:44 -0500
committerOmar Roth <omarroth@hotmail.com>2018-04-03 17:08:44 -0500
commitc3ac257dbf0b5909f18c841d8382cacb059b4b96 (patch)
tree6b916d7ce7350a98d716a3eda912b93d09d8fafd /src
parent10c1cfa4b5ba632b68e8550d9744d38f8ebf0775 (diff)
downloadinvidious-c3ac257dbf0b5909f18c841d8382cacb059b4b96.tar.gz
invidious-c3ac257dbf0b5909f18c841d8382cacb059b4b96.tar.bz2
invidious-c3ac257dbf0b5909f18c841d8382cacb059b4b96.zip
Remove empty array from get_user
Diffstat (limited to 'src')
-rw-r--r--src/helpers.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.cr b/src/helpers.cr
index b0c61d27..6b05a016 100644
--- a/src/helpers.cr
+++ b/src/helpers.cr
@@ -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)