Support now null as not initialized for SteamId
Build, Test & Push Auth Service / quality-check (push) Successful in 37s
Build, Test & Push Auth Service / docker (push) Successful in 1m50s

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