refactor(workerDms): adapat to lilium #2269

Merged
alexm merged 3 commits from 6551-workerDms_refactor into dev 2024-04-09 08:21:21 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 500244dbed - Show all commits

View File

@ -68,7 +68,7 @@ module.exports = Self => {
const docuwareDmsType = docuware.dmsTypeFk;
let workerDocuware = [];
if (!filter.skip && (!docuwareDmsType || (docuwareDmsType && await models.DmsType.hasReadRole(ctx, docuwareDmsType)))) {
const worker = await models.Worker.findById(36471, {fields: ['fi', 'firstName', 'lastName']});
const worker = await models.Worker.findById(id, {fields: ['fi', 'firstName', 'lastName']});
const docuwareParse = {
'Filename': 'dmsFk',
'Tipo Documento': 'description',