Skip to content

Commit

Permalink
fix: add fields to ExportCourseDto
Browse files Browse the repository at this point in the history
  • Loading branch information
apalchys committed Sep 16, 2024
1 parent 9f75cca commit f56219a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nestjs/src/courses/dto/export-course.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export class ExportCourseDto {
this.startDate = course.startDate.toISOString();
this.endDate = course.endDate.toISOString();
this.alias = course.alias;
this.discipline = course.discipline;
this.discipline = course.discipline ? { id: course.discipline.id, name: course.discipline.name } : null;
this.description = course.description;
this.registrationEndDate = course.registrationEndDate.toISOString();
}

id: number;
Expand Down

0 comments on commit f56219a

Please sign in to comment.