Fix preferences for existing users

pull/19/head
Omar Roth 7 years ago
parent eaf8854f96
commit abab7fca87

@ -775,6 +775,7 @@ def get_user(sid, client, headers, db, refresh = true)
else else
user = fetch_user(sid, client, headers, db) user = fetch_user(sid, client, headers, db)
user_array = user.to_a user_array = user.to_a
user_array[5] = user_array[5].to_json
args = arg_array(user.to_a) args = arg_array(user.to_a)
db.exec("INSERT INTO users VALUES (#{args}) \ db.exec("INSERT INTO users VALUES (#{args}) \

Loading…
Cancel
Save