fix: refs #7229 set right urls #3226

Merged
jorgep merged 5 commits from 7229-fixDownloadFile into dev 2024-11-22 09:34:17 +00:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit e125dee691 - Show all commits

View File

@ -95,18 +95,18 @@ module.exports = Self => {
await models.Docuware.getById('hr', worker?.lastName + ' ' + worker?.firstName, docuwareParse) ?? [];
for (document of workerDocuware) {
const documentId = document.id;
const {id: documentId, dmsFk} = document;
const defaultData = {
id: documentId,
workerFk: id,
dmsFk: document.dmsFk,
dmsFk: dmsFk,
dms: {
id: documentId,
file: document.dmsFk + '.pdf',
file: dmsFk + '.pdf',
isDocuware: true,
hasFile: false,
reference: worker?.fi,
dmsFk: document.dmsFk,
dmsFk: dmsFk,
url: document.url,
download: `WorkerDms/${document.dmsFk}/docuwareDownload`,
description: document.description + ' - ' + document.state,