feat : send only user ids

This commit is contained in:
2024-12-30 12:04:53 +01:00
parent 735e47cdbe
commit e872eeea91
2 changed files with 8 additions and 4 deletions
+3 -2
View File
@@ -6,7 +6,8 @@ export class GameResponseDTO {
constructor(partial: Partial<GameResponseDTO>) {
this.id = partial.id;
this.started = partial.started;
this.owner = new UserResponseDTO(partial.owner);
this.ownerId = partial.ownerId;
// this.owner = new UserResponseDTO(partial.owner);
if (partial.players) {
this.players = partial.players.map((p) => new PlayerResponseDTO(p));
}
@@ -24,7 +25,7 @@ export class GameResponseDTO {
id: number;
owner: UserResponseDTO;
ownerId: number;
players: PlayerResponseDTO[] = [];