Support now null as not initialized for SteamId

This commit is contained in:
lobo committed 2026-04-19 14:59:27 +02:00
1 parent 2d4fb5bef7
commit 2dc3cda51c
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();
} }