Skip to content

Commit

Permalink
Hotfix: 그룹 태그 번호 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
zionhann committed Sep 18, 2023
1 parent 825170a commit 432dd48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/edu/handong/csee/histudy/dto/TeamReportDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
public class TeamReportDto {

@Schema(description = "Team ID", example = "1", type = "number")
@Deprecated
private long group;

@Schema(description = "Team tag number", example = "1")
private Integer tag;

@Schema(description = "Team members", type = "array")
private List<UserDto.UserBasic> members;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public TeamReportDto getTeamReports(long id, String email) {
List<ReportDto.ReportBasic> reports = studyGroup.getReports()
.stream()
.map(ReportDto.ReportBasic::new).toList();
return new TeamReportDto(studyGroup.getId(), users, studyGroup.getTotalMinutes(), reports);
return new TeamReportDto(studyGroup.getId(),
studyGroup.getTag(),
users, studyGroup.getTotalMinutes(), reports);
}

public List<UserDto.UserMeWithMasking> getTeamUsers(String email) {
Expand Down

0 comments on commit 432dd48

Please sign in to comment.