From 871eec643d18ac7f7b2846aec289f528d972958f Mon Sep 17 00:00:00 2001 From: Christos Nasikas Date: Wed, 20 Feb 2019 22:40:38 +0200 Subject: [PATCH] Fix returned values of user --- api/controllers/UserController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/controllers/UserController.js b/api/controllers/UserController.js index 496d86b..41d2d55 100644 --- a/api/controllers/UserController.js +++ b/api/controllers/UserController.js @@ -22,6 +22,6 @@ module.exports = class UserController extends BaseController { const user = req.user const statistics = await this.getStatistics(user) - res.json({ success: 200, user: { ...user, statistics } }) + res.json({ success: 200, user: { ...user.dataValues, statistics } }) } }