|
@ -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), |
|
|