From 036a75ccd3545eb87bbe8676a315cc4ad72ef16d Mon Sep 17 00:00:00 2001 From: Mike Date: Sun, 29 Sep 2019 18:05:28 +0800 Subject: [PATCH] Serve user id --- controllers/userController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',