-
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.
refactor: User컬렉션 Community필드에 채널 추가해주는 형식을 만드는 것을 모듈화
- Loading branch information
1 parent
969486d
commit b2eea18
Showing
2 changed files
with
8 additions
and
2 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
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,6 @@ | ||
export function addChannelToUserForm(communityId, channelId) { | ||
const newChannel = {}; | ||
newChannel[`communities.${communityId.toString()}.channels.${channelId.toString()}`] = new Date(); | ||
|
||
return newChannel; | ||
} |
b2eea18
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.