Skip to content

Commit

Permalink
167930601-bug(articles) fix get bookmarked articles
Browse files Browse the repository at this point in the history
  • Loading branch information
fantastic-genius committed Aug 15, 2019
1 parent ee62347 commit 40da6b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions controllers/articles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,16 @@ export default {
where: {
userId
}
},
{
model: db.User,
as: 'author',
attributes: ['firstName', 'lastName', ['image', 'authorImage']]
},
{
model: db.Category,
as: 'category',
attributes: ['name']
}]
});

Expand Down

0 comments on commit 40da6b2

Please sign in to comment.