diff --git a/dto/gameresponse.dto.ts b/dto/gameresponse.dto.ts index 626a3a2..dfff9be 100644 --- a/dto/gameresponse.dto.ts +++ b/dto/gameresponse.dto.ts @@ -1,10 +1,9 @@ import { UserResponseDTO } from './userresponse.dto'; import { PlayerResponseDTO } from './playerresponse.dto'; -import { ConceptInTurnResponseDTO } from './conceptinturnresponse.dto'; import { MessageResponseDTO } from './messageresponse.dto'; export class GameResponseDTO { - constructor(partial: Partial) { + constructor(partial: GameResponseDTO) { this.id = partial.id; this.started = partial.started; this.ownerId = partial.ownerId; @@ -15,12 +14,6 @@ export class GameResponseDTO { this.players = partial.players.map((p) => new PlayerResponseDTO(p)); } - if (partial.currentConcepts) { - this.currentConcepts = partial.currentConcepts.map( - (c) => new ConceptInTurnResponseDTO(c), - ); - } - if (partial.currentPlayer) { this.currentPlayer = new PlayerResponseDTO(partial.currentPlayer); } @@ -36,7 +29,5 @@ export class GameResponseDTO { started: boolean; - currentConcepts: ConceptInTurnResponseDTO[] = []; - messages: MessageResponseDTO[] = []; }