From 6c62d19a0dffa92f3f2d75f8d8b62de3c7e81410 Mon Sep 17 00:00:00 2001 From: L4168 <L4168@student.jamk.fi> Date: Tue, 2 Jul 2019 10:04:35 +0300 Subject: [PATCH] center: CenterDTO --- src/game/game.entity.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/game.entity.ts b/src/game/game.entity.ts index b580665..030e81d 100644 --- a/src/game/game.entity.ts +++ b/src/game/game.entity.ts @@ -14,6 +14,7 @@ import { PersonEntity } from '../user/user.entity'; import { GameGroupEntity } from '../faction/faction.entity'; import { FactionEntity } from '../faction/faction.entity'; import { TaskEntity } from '../task/task.entity'; +import { CenterDTO } from './game.json.dto'; // table that stores all created games @Entity('Game') @@ -21,7 +22,7 @@ export class GameEntity { @PrimaryGeneratedColumn('uuid') id: string; @Column('text') name: string; @Column('text') desc: string; - @Column('json') center: JSON; + @Column('json') center: CenterDTO; @Column({ type: 'json', nullable: true }) map: JSON; @Column({ type: 'json', nullable: true }) nodesettings?: JSON; @Column('timestamp') startdate: Timestamp; -- GitLab