Skip to content

Commit

Permalink
put ext_name at top of response properties
Browse files Browse the repository at this point in the history
  • Loading branch information
AdenForshaw committed Nov 15, 2024
1 parent 2c2e66f commit 0fa5bfd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/places/dto/responses/place-response.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ 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 @@ -106,11 +113,6 @@ export class PlacePropertiesDto {
names: PlaceNamesDto;


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

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

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

Expand Down

0 comments on commit 0fa5bfd

Please sign in to comment.