Commit 161864ee authored by nickstiffler's avatar nickstiffler Committed by Yannis Barlas

feat(assign reviewers): include email in reviewer table

parent 839f62de
......@@ -215,6 +215,10 @@ const ReviewerTable = props => {
accessor: 'name',
Header: 'Name',
},
{
accessor: 'email',
Header: 'Email',
},
{
accessor: 'status',
Header: 'Status',
......
......@@ -25,6 +25,7 @@ const GET_ARTICLE_REVIEWERS = gql`
id
agreedTc
displayName
email
}
}
}
......
......@@ -341,8 +341,17 @@ const members = async (team, vars, ctx) =>
teamId: team.id,
})
const teamMemberUser = async (teamMember, vars, ctx) =>
User.findById(teamMember.userId)
const teamMemberUser = async (teamMember, vars, ctx) => {
const user = await User.findById(teamMember.userId)
const identity = await Identity.query().findOne({
isDefault: true,
userId: teamMember.userId,
})
user.email = identity.email
return user
}
/* eslint-disable-next-line import/prefer-default-export */
module.exports = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment