Skip to content

Commit

Permalink
fix(articles): return author's firstname and lastname with articles
Browse files Browse the repository at this point in the history
[Delivers]
  • Loading branch information
emmaadesile committed Oct 22, 2018
1 parent 4d34d50 commit 7f3e298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ class ArticleController {
include: [{
model: User,
as: 'author',
attributes: ['username', 'email', 'bio', 'image']
attributes: ['username', 'firstName', 'lastName', 'email', 'bio', 'image']
}, {
model: Tag,
as: 'tags',
Expand Down

0 comments on commit 7f3e298

Please sign in to comment.