From c3ac257dbf0b5909f18c841d8382cacb059b4b96 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 3 Apr 2018 17:08:44 -0500 Subject: [PATCH] Remove empty array from get_user --- src/helpers.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)