fix: refs #7229 set right urls #3226
|
@ -86,30 +86,30 @@ module.exports = Self => {
|
|||
'Tipo Documento': 'description',
|
||||
'Stored on': 'created',
|
||||
'Document ID': 'id',
|
||||
'URL': 'download',
|
||||
'URL': 'url',
|
||||
'Stored by': 'name',
|
||||
'Estado': 'state'
|
||||
};
|
||||
|
||||
workerDocuware =
|
||||
await models.Docuware.getById('hr', worker.lastName + ' ' + worker.firstName, docuwareParse) ?? [];
|
||||
const url = (await Self.app.models.Url.getUrl('docuware')) + 'WebClient';
|
||||
await models.Docuware.getById('hr', worker?.lastName + ' ' + worker?.firstName, docuwareParse) ?? [];
|
||||
|
||||
for (document of workerDocuware) {
|
||||
const docuwareId = document.id;
|
||||
const documentId = document.id;
|
||||
const defaultData = {
|
||||
id: docuwareId,
|
||||
id: documentId,
|
||||
workerFk: id,
|
||||
dmsFk: docuwareId,
|
||||
dmsFk: document.dmsFk,
|
||||
dms: {
|
||||
id: docuwareId,
|
||||
file: docuwareId + '.pdf',
|
||||
id: documentId,
|
||||
file: document.dmsFk + '.pdf',
|
||||
isDocuware: true,
|
||||
hasFile: false,
|
||||
reference: worker.fi,
|
||||
dmsFk: docuwareId,
|
||||
url,
|
||||
reference: worker?.fi,
|
||||
dmsFk: document.dmsFk,
|
||||
url: document.url,
|
||||
download: `WorkerDms/${document.dmsFk}/docuwareDownload`,
|
||||
description: document.description + ' - ' + document.state,
|
||||
download: document.download,
|
||||
created: document.created,
|
||||
dmsType: {name: 'Docuware'},
|
||||
worker: {id: null, user: {name: document.name}},
|
||||
|
|
Loading…
Reference in New Issue