8062-testToMaster_2 #3059
|
@ -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'}
|
||||
|
|
Loading…
Reference in New Issue