fix(database helper): fix player uid issues

This commit is contained in:
Yazawazi 2022-05-28 01:04:27 +08:00 committed by Melledy
parent 9af10859bb
commit c164b25f90

View File

@ -97,7 +97,7 @@ public final class DatabaseHelper {
} }
public static Account getAccountByPlayerId(int playerId) { public static Account getAccountByPlayerId(int playerId) {
return DatabaseManager.getGameDatastore().find(Account.class).filter(Filters.eq("playerId", playerId)).first(); return DatabaseManager.getGameDatastore().find(Account.class).filter(Filters.eq("reservedPlayerId", playerId)).first();
} }
public static void deleteAccount(Account target) { public static void deleteAccount(Account target) {