明树Git Lab

Commit 4bd44da3 authored by zengfanpei's avatar zengfanpei

update

parent 8a2797f2
......@@ -11,7 +11,7 @@ async function findUserByMobile(mobile) {
if (!mobile) {
return null;
}
const user = await DB.User.findOne({ mobile }).populate({path: "roles", select: "name key menus buttons", match: {del: 0}})
const user = await DB.User.findOne({ mobile }).populate({path: "roles", select: "name key menus buttons", match: {del: {$ne: 1}}})
.populate({path: "depart", select: "name", match: {del: 0}})
.populate({path: "avatar"})
.lean().exec();//{ path: "roles depart avatar" }
......
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