Browse Source

api pomsProject项目查询接口查询

dev
wenlele 3 years ago
parent
commit
0c36c3ff6e
  1. 2
      api/app/lib/controllers/project/index.js

2
api/app/lib/controllers/project/index.js

@ -36,7 +36,7 @@ async function pomsProject (ctx) {
}
}
if (global && !userInfo.role.includes('SuperAdmin') && !userInfo.role.includes('admin')) {
findOption.where = { id: { $in: userInfo.correlationProject } }
findOption.where.id = { $in: userInfo.correlationProject }
}
if (pepId) {
findOption.where.id = pepId

Loading…
Cancel
Save