diff --git a/controllers/userController.js b/controllers/userController.js index 3ae051865..543aa21c9 100644 --- a/controllers/userController.js +++ b/controllers/userController.js @@ -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',