diff --git a/src/game/game.service.ts b/src/game/game.service.ts index 4863cf067d2133cc428da74bb80b1ed6448bff41..9d0244a4c523d1759818439d5f915f206af4aebe 100644 --- a/src/game/game.service.ts +++ b/src/game/game.service.ts @@ -8,7 +8,7 @@ import { ObjectivePointEntity, ObjectivePoint_HistoryEntity, } from './game.entity'; -import { GameDTO, FlagboxEventDTO, GameStateDTO } from './game.dto'; +import { GameDTO, FlagboxEventDTO, GameStateDTO, newGameDTO } from './game.dto'; import { PersonEntity } from '../user/user.entity'; import { FactionEntity } from '../faction/faction.entity'; import { NotificationGateway } from '../notifications/notifications.gateway'; @@ -34,7 +34,7 @@ export class GameService { private tickService: TickService, ) {} // create a new game - async createNewGame(personId: PersonEntity, gameData: GameDTO) { + async createNewGame(personId: PersonEntity, gameData: newGameDTO) { // checks if a game with the same name exists already if (await this.gameRepository.findOne({ name: gameData.name })) { throw new HttpException('Game already exists', HttpStatus.BAD_REQUEST);