Fix save user query

This commit is contained in:
Luck 2016-06-29 11:59:16 +01:00
parent 3c83c31e9f
commit 0e449cdd7a

View File

@ -193,8 +193,8 @@ abstract class SQLDatastore extends Datastore {
@Override
void onRun(PreparedStatement preparedStatement) throws SQLException {
preparedStatement.setString(1, user.getName());
preparedStatement.setString(2, gson.toJson(user.getNodes()));
preparedStatement.setString(3, user.getPrimaryGroup());
preparedStatement.setString(2, user.getPrimaryGroup());
preparedStatement.setString(3, gson.toJson(user.getNodes()));
preparedStatement.setString(4, user.getUuid().toString());
}
});