Skip to content

Commit 9b82c5c

Browse files
Joshua Zhoutektaxi
authored andcommitted
add hacker id to team api response schema
1 parent 37ffe34 commit 9b82c5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

middlewares/team.middleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,11 @@ async function populateMemberAccountsById(req, res, next) {
420420

421421
for (const member of team.members) {
422422
teamMembers.push({
423+
id: member._id.toString(),
423424
school: member.application.general.school,
424425
status: member.status,
425426
firstName: member.accountId.firstName,
426-
lastName: member.accountId.lastName
427+
lastName: member.accountId.lastName,
427428
});
428429
hackerIds.push(member._id);
429430
}

0 commit comments

Comments
 (0)