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
+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;
}
}
}