Skip to content

Commit

Permalink
Merge pull request #23 from fga-eps-mds/hotfix/fix-area-and-points
Browse files Browse the repository at this point in the history
hotfix - Add missing field to DTOs
  • Loading branch information
ebmm01 committed Oct 15, 2021
2 parents 8605efe + da5c277 commit 986a250
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mapas/dto/area.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export class AreaDto {
static convertFromAreaDocument(area: AreaDocument) {
const newAreaDto = new AreaDto();

newAreaDto.id = area.id;
newAreaDto.title = area.title;
newAreaDto.description = area.description;
newAreaDto.type = area.type;
Expand All @@ -14,6 +15,7 @@ export class AreaDto {
}

// these values will be initialized from a AreaDocument
id: string;
title: string;
description?: string;
type = 'Polygon';
Expand Down
2 changes: 2 additions & 0 deletions src/mapas/dto/point.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export class PointDto {
static convertFromPointDocument(point: PointDocument) {
const newPointDto = new PointDto();

newPointDto.id = point.id;
newPointDto.title = point.title;
newPointDto.description = point.description;
newPointDto.coordinates = point.coordinates;
Expand All @@ -13,6 +14,7 @@ export class PointDto {
}

// these values will be initialized from a PointDocument
id: string;
title: string;
description?: string;
type = 'Point';
Expand Down

0 comments on commit 986a250

Please sign in to comment.