Skip to content

Commit

Permalink
Prepare API schema to accept rating
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawajs committed Jan 25, 2025
1 parent 9af319d commit d383ff5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/nursery-nav-api/src/institutions/DTO/institutionDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export class InstitutionDto {

@ApiProperty()
address: AddressDto;

@ApiProperty()
rating: number;
}


Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,7 @@ export class InstitutionListItemDto {

@ApiProperty()
city: string;

@ApiProperty()
rating: number;
}
3 changes: 3 additions & 0 deletions src/nursery-nav-api/src/shared/schemas/institution.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class Institution {

@Prop()
operatingEntity: OperatingEntity;

@Prop()
rating: number;
}

export const InstitutionSchema = SchemaFactory.createForClass(Institution);

0 comments on commit d383ff5

Please sign in to comment.