Adding author info to comments and author name display.

This commit is contained in:
David Jay
2016-11-18 14:22:21 -05:00
parent 7a6dfbcb4a
commit 29bf5b9990
5 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ router.get('/', (req, res, next) => {
return Promise.all([
[asset],
comments,
User.findByIdArray(comments.map((comment) => comment.author_id)),
User.findPublicByIdArray(comments.map((comment) => comment.user_id)),
Action.getActionSummaries(comments.map((comment) => comment.id))
]);
})