Public Access
Support now null as not initialized for SteamId
This commit is contained in:
1 parent
dda7e50963
commit
c312d271ad
1 file changed
+5
-2
@@ -31,13 +31,16 @@ public abstract class EntityMapper {
|
||||
}
|
||||
|
||||
// 2. Map the main user fields and attach the settings
|
||||
|
||||
var steamId = entity.getSteamId() == null ? 0L : entity.getSteamId();
|
||||
|
||||
return User.builder()
|
||||
.id(entity.getId())
|
||||
.email(entity.getEmail())
|
||||
.encryptedPassword(entity.getPassword())
|
||||
.lastLogin(entity.getLastLoginDate())
|
||||
.createdDate(entity.getRegistrationDate())
|
||||
.steamId(entity.getSteamId())
|
||||
.steamId(steamId)
|
||||
.settings(settingsModel)
|
||||
.build();
|
||||
}
|
||||
@@ -49,4 +52,4 @@ public abstract class EntityMapper {
|
||||
entity.setTheme(settings.getTheme());
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user