fix list user error

master
tungd0 2 years ago
parent def83939c7
commit 2994342be0
  1. 4
      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);

Loading…
Cancel
Save