Skip to content

Commit

Permalink
Merge pull request #524 from ldhbenecia/feature/groups
Browse files Browse the repository at this point in the history
[Refactor] Group 스키마 변경으로 인한 코드 수정
  • Loading branch information
ldhbenecia authored Feb 1, 2024
2 parents 42e9ef8 + a9bf3e2 commit aad3f9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/backend/src/groups/dto/groups.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export class GroupsDto implements ResponseGroupsDto {

@ApiProperty({ description: 'title of the Group', example: '부스트캠프 웹・모바일 8기' })
title: string;

@ApiProperty({ description: 'GroupOwner Id', example: '1' })
groupOwnerId: Bigint;

@ApiProperty({ description: 'Group Type Id', example: '1' })
groupTypeId: number;
}

export class GroupsWithMemberCountDto implements ResponseGroupsWithMemberCountDto {
Expand Down
4 changes: 4 additions & 0 deletions app/backend/src/mogaco-boards/mogaco-boards.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ export class MogacoRepository {
group: {
id: mogaco.group.id.toString(),
title: mogaco.group.title,
groupOwnerId: mogaco.group.groupOwnerId.toString(),
groupTypeId: mogaco.group.groupTypeId,
},
}));
}
Expand Down Expand Up @@ -209,6 +211,8 @@ export class MogacoRepository {
group: {
id: participant.mogaco.group.id.toString(),
title: participant.mogaco.group.title,
groupOwnerId: participant.mogaco.group.groupOwnerId.toString(),
groupTypeId: participant.mogaco.group.groupTypeId,
},
}));

Expand Down

0 comments on commit aad3f9b

Please sign in to comment.