Template
feat : send only user ids
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user