明树Git Lab

Commit b2c8f073 authored by zhangqi's avatar zhangqi

1

parent a38757d2
...@@ -146,6 +146,7 @@ async function getDepartUsers(req, res, next) { ...@@ -146,6 +146,7 @@ async function getDepartUsers(req, res, next) {
{ model: DB.Position, as: 'positions', through: { attributes: [] } } { model: DB.Position, as: 'positions', through: { attributes: [] } }
] ]
}; };
search.attributes = req.body.attributes || { exclude: ['password', 'salt'] };
if (!req.body.departId) { if (!req.body.departId) {
return res.sendError(errorMessage.resourceNotFound); return res.sendError(errorMessage.resourceNotFound);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment