Skip to content
Snippets Groups Projects
Commit f35c26c4 authored by L4168's avatar L4168
Browse files

dto-fixes

parent a08ccea1
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ import {
import { GameEntity } from '../game/game.entity';
import { Type } from 'class-transformer';
import { FactionEntity } from 'src/faction/faction.entity';
export class DataDTO {
@IsArray()
......@@ -30,6 +31,9 @@ export class MapDrawingDTO {
@IsOptional()
@IsUUID('4')
mapDrawingId: string;
@IsOptional()
@IsUUID('4')
faction: FactionEntity;
@IsNotEmpty()
@ValidateNested()
@Type(() => DataDTO)
......
......@@ -46,7 +46,7 @@ export class NodeSettingsDTO {
}
export class GameDTO {
@IsUUID('4')
@IsOptional()
id: string;
@IsString()
@IsNotEmpty()
......
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm';
import { Game_PersonEntity, GameEntity } from '../game/game.entity';
import { FactionEntity } from '../faction/faction.entity';
import { GeoDTO } from './geo.dto';
import { GeoDTO } from './tracking.dto';
@Entity('Tracking')
export class TrackingEntity {
......
......@@ -4,8 +4,8 @@ import { Repository } from 'typeorm';
import { Game_PersonEntity } from '../game/game.entity';
import { TrackingEntity } from './tracking.entity';
import { GeoDTO } from './geo.dto';
import { FactionEntity } from 'src/faction/faction.entity';
import { FactionEntity } from '../faction/faction.entity';
import { GeoDTO } from './tracking.dto';
@Injectable()
export class TrackingService {
......
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