From 64198ff2fd9e2b898e7da00c0b10a44b0977b56c Mon Sep 17 00:00:00 2001
From: Ronnie Friman <L4168@student.jamk.fi>
Date: Tue, 23 Jul 2019 06:47:29 +0300
Subject: [PATCH] import newGameDTO

---
 src/game/game.service.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/game/game.service.ts b/src/game/game.service.ts
index 4863cf0..9d0244a 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);
-- 
GitLab