Skip to content

Commit

Permalink
Fix returned values of user
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Feb 20, 2019
1 parent e72fa09 commit 871eec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/UserController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 } })
}
}

0 comments on commit 871eec6

Please sign in to comment.