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