-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 커뮤니티 정보 전달 시 커뮤니티 및 채널의 기본 정보 포함 #115
- Loading branch information
1 parent
c1a8bb0
commit 73bf217
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export const getChannelBasicInfo = (channel) => { | ||
return { | ||
_id: channel._id, | ||
name: channel.name, | ||
managerId: channel.managerId, | ||
type: channel.type, | ||
isPrivate: channel.isPrivate, | ||
profileUrl: channel.profileUrl, | ||
description: channel.description, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
server/apps/api/src/community/dto/community-basic-info.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const getCommunityBasicInfo = (community, channels) => { | ||
return { | ||
_id: community._id, | ||
name: community.name, | ||
managerId: community.managerId, | ||
profileUrl: community.profileUrl, | ||
description: community.description, | ||
channels, | ||
}; | ||
}; |
73bf217
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.