Skip to content

Commit

Permalink
Serve user id
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpaes committed Sep 29, 2019
1 parent 82fa9d8 commit 036a75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ module.exports = {
{
model: Tweet,
include: [
{ model: User, attributes: ['name', 'avatar'] }
{ model: User, attributes: ['name', 'avatar', 'id'] }
],
attributes: [
'createdAt', 'id', 'createdAt', 'description',
Expand Down

0 comments on commit 036a75c

Please sign in to comment.