Create a route that lists interviewer stats
Closed this issue · 0 comments
weihanwang commented
- create a new route
getInterviewerStats
in filesrc/api/routes/interviews.ts
- access to this route should be limited to MentorshipManagers only
- It should return an array of users who has the role
Mentor
- The type of each array item should be like:
{
user: zUser,
interviews: z.number()
}
where interviews
is the number of times the user is referred to in the InterviewFeedback.interviewerId field