refactor(workerDms): adapat to lilium #2269
|
@ -68,7 +68,7 @@ module.exports = Self => {
|
||||||
const docuwareDmsType = docuware.dmsTypeFk;
|
const docuwareDmsType = docuware.dmsTypeFk;
|
||||||
let workerDocuware = [];
|
let workerDocuware = [];
|
||||||
if (!filter.skip && (!docuwareDmsType || (docuwareDmsType && await models.DmsType.hasReadRole(ctx, docuwareDmsType)))) {
|
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 = {
|
const docuwareParse = {
|
||||||
'Filename': 'dmsFk',
|
'Filename': 'dmsFk',
|
||||||
'Tipo Documento': 'description',
|
'Tipo Documento': 'description',
|
||||||
|
|
Loading…
Reference in New Issue