Commit 2a22adbb authored by Diego Iván's avatar Diego Iván
Browse files

corrigiendo dtos para Town

parent 941381db
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3,6 +3,5 @@ import { LANGUAGES } from 'src/shared/enum/languages.enum';
export class CreateTownTraductionDto {
  townId: number;
  language: LANGUAGES;
  name: string;
  description: string;
}
+5 −4
Original line number Diff line number Diff line
import { PartialType } from '@nestjs/swagger';
import { CreateTownDto } from './create-town.dto';

export class UpdateTownDto extends PartialType(CreateTownDto) {}
export class UpdateTownDto {
  name: string;
  imageName: string;
  state: number;
}
+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ export class Town {
  townId: number;

  @ManyToOne(() => State, (state) => state.stateId, { nullable: false })
  state: number;
  state: State;

  @OneToMany(() => Place, (place) => place.idTown)
  places: Place[];