Skip to content

Commit

Permalink
add country
Browse files Browse the repository at this point in the history
  • Loading branch information
nimarion committed Aug 5, 2024
1 parent 87b87b3 commit aab48aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/records/record.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class Record {
wind: number | null;
@ApiProperty()
indoor: boolean;
@ApiProperty()
country: string;
@ApiProperty({ type: RecordAthlete, isArray: true })
athletes: RecordAthlete[];
}
1 change: 1 addition & 0 deletions src/records/records.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export class RecordsService {
mark: result.performance,
wind: result.wind,
indoor: result.setIndoor,
country: result.country,
athletes: athletes.map((competitor) => ({
firstname: competitor.name.split(' ')[0],
lastname: formatLastname(competitor.name.split(' ')[1]),
Expand Down

0 comments on commit aab48aa

Please sign in to comment.