Fix preferences for existing users

This commit is contained in:
Omar Roth 2018-07-18 15:49:01 -05:00
parent eaf8854f96
commit abab7fca87
1 changed files with 1 additions and 0 deletions

View File

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