Fix user primary key

master
esensar 2017-01-07 17:21:40 +01:00
parent 997b43f2e2
commit bed927d441
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import io.realm.annotations.PrimaryKey;
public class User extends RealmObject{
public static final String TAG = User.class.getSimpleName();
public static final String PRIMARY_KEY = "username";
public static final String PRIMARY_KEY = "id";
@PrimaryKey
private int id;