Skip to content

Commit 95595e1

Browse files
committed
return invites in GET /projects/:id
1 parent 3e97ee4 commit 95595e1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/routes/projects/get.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ module.exports = [
6464
if (attachments) {
6565
project.attachments = attachments;
6666
}
67+
return models.ProjectMemberInvite.getPendingInvitesForProject(projectId);
68+
})
69+
.then((invites) => {
70+
project.invites = invites;
6771
res.status(200).json(util.wrapResponse(req.id, project));
6872
})
6973
.catch(err => next(err));

0 commit comments

Comments
 (0)