Browse Source

修正用户请求的api

master
dengyinhuan 2 years ago
parent
commit
5db8674bc6
  1. 2
      api/app/lib/controllers/organization/user.js

2
api/app/lib/controllers/organization/user.js

@ -172,7 +172,7 @@ async function getUser (ctx, next) {
const models = ctx.fs.dc.models; const models = ctx.fs.dc.models;
const { depId } = ctx.params; const { depId } = ctx.params;
let userRes = null; let userRes = null;
if (depId !== 'null') { if (depId !== 'undefined') {
userRes = await models.User.findAll({ userRes = await models.User.findAll({
where: { where: {
departmentId: parseInt(depId), departmentId: parseInt(depId),

Loading…
Cancel
Save