Skip to content

Commit

Permalink
Added year to /courses response
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqua-sc committed Apr 27, 2024
1 parent 738303e commit ead08ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
import java.time.OffsetDateTime;

public record CourseWithRelationJson (String url, CourseRelation relation, String name, Long courseId,
OffsetDateTime archivedAt, Integer memberCount, OffsetDateTime createdAt) { }
OffsetDateTime archivedAt, Integer memberCount, OffsetDateTime createdAt, Integer year) { }

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class CourseEntity {
private String description;

@Column(name = "course_year", nullable = true)
private int courseYear;
private Integer courseYear;


@Column(name = "created_at")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ public CourseWithRelationJson courseEntityToCourseWithRelation(CourseEntity cour
course.getId(),
course.getArchivedAt(),
memberCount,
course.getCreatedAt()
course.getCreatedAt(),
course.getCourseYear()
);
}

Expand Down

0 comments on commit ead08ae

Please sign in to comment.