diff --git a/src/api/controllers/v1/user.controller.js b/src/api/controllers/v1/user.controller.js index 99af8e9..43984c2 100644 --- a/src/api/controllers/v1/user.controller.js +++ b/src/api/controllers/v1/user.controller.js @@ -69,7 +69,9 @@ exports.list = async (req, res, next) => { res.json({ code: 0, count: req.totalRecords, - data: result + data: result.map( + x => User.transform(x) + ) }); }).catch(ex => { ErrorHandler(ex, req, res, next);