Skip to content
Snippets Groups Projects
Commit 64198ff2 authored by Ronnie Friman's avatar Ronnie Friman
Browse files

import newGameDTO

parent 8b9c5f39
No related branches found
No related tags found
3 merge requests!59Development to master,!58Development to testing,!56Cluster update to Development
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment