@ -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);