Refactor
This commit is contained in:
16
server/presenters.js
Normal file
16
server/presenters.js
Normal file
@ -0,0 +1,16 @@
|
||||
export function presentUser(user) {
|
||||
return {
|
||||
id: user.id,
|
||||
name: user.name,
|
||||
username: user.username,
|
||||
email: user.email,
|
||||
avatarUrl: user.slackData.profile.image_192,
|
||||
};
|
||||
}
|
||||
|
||||
export function presentTeam(team) {
|
||||
return {
|
||||
id: team.id,
|
||||
name: team.name,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user