fix: refs #7182 function name

This commit is contained in:
Alex Moreno 2024-09-11 10:31:43 +02:00
parent fbfbf21e06
commit c21da8d258
1 changed files with 2 additions and 2 deletions

View File

@ -67,10 +67,10 @@ module.exports = Self => {
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);
async function getDocuwareasync(ctx, id) {
async function getDocuware(ctx, id) {
const {dmsTypeFk} = await models.Docuware.findOne({
fields: ['dmsTypeFk'],
where: {code: 'hr', action: 'find'}