Skip to content

Commit

Permalink
revert ext_name change
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenForshaw committed Nov 15, 2024
1 parent 0119a61 commit ed98c0f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/places/dto/responses/place-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ export class AddressDto {


export class PlacePropertiesDto {
@ApiProperty({
description: 'Name of the place.',
type: () => PlaceNamesDto,
})
ext_name?: string;


@ApiProperty({ description: 'Primary category of the place.', type: () => CategoryDto })
categories: CategoryDto;
Expand Down Expand Up @@ -113,6 +107,12 @@ export class PlacePropertiesDto {
names: PlaceNamesDto;


@ApiProperty({
description: 'Name of the place.',
type: () => PlaceNamesDto,
})
ext_name?: string;


ext_building?: {
id:string;
Expand All @@ -123,8 +123,8 @@ export class PlacePropertiesDto {
ext_place_geometry?:Point;

constructor(data={}) {
this.ext_name = this.names?.primary;
Object.assign(this, data);
this.ext_name = this.names?.primary;
}
}

Expand Down

0 comments on commit ed98c0f

Please sign in to comment.