fix: refs #7182 function name
This commit is contained in:
parent
fbfbf21e06
commit
c21da8d258
|
@ -67,10 +67,10 @@ module.exports = Self => {
|
||||||
|
|
||||||
const workerDms = await models.WorkerDms.find(allowedFilter);
|
const workerDms = await models.WorkerDms.find(allowedFilter);
|
||||||
|
|
||||||
const workerDocuware = filter.skip ? [] : await getDocuwareasync(ctx, id);
|
const workerDocuware = filter.skip ? [] : await getDocuware(ctx, id);
|
||||||
return workerDms.concat(workerDocuware);
|
return workerDms.concat(workerDocuware);
|
||||||
|
|
||||||
async function getDocuwareasync(ctx, id) {
|
async function getDocuware(ctx, id) {
|
||||||
const {dmsTypeFk} = await models.Docuware.findOne({
|
const {dmsTypeFk} = await models.Docuware.findOne({
|
||||||
fields: ['dmsTypeFk'],
|
fields: ['dmsTypeFk'],
|
||||||
where: {code: 'hr', action: 'find'}
|
where: {code: 'hr', action: 'find'}
|
||||||
|
|
Loading…
Reference in New Issue