This commit is contained in:
parent
940bc8caed
commit
e125dee691
|
@ -95,18 +95,18 @@ module.exports = Self => {
|
||||||
await models.Docuware.getById('hr', worker?.lastName + ' ' + worker?.firstName, docuwareParse) ?? [];
|
await models.Docuware.getById('hr', worker?.lastName + ' ' + worker?.firstName, docuwareParse) ?? [];
|
||||||
|
|
||||||
for (document of workerDocuware) {
|
for (document of workerDocuware) {
|
||||||
const documentId = document.id;
|
const {id: documentId, dmsFk} = document;
|
||||||
const defaultData = {
|
const defaultData = {
|
||||||
id: documentId,
|
id: documentId,
|
||||||
workerFk: id,
|
workerFk: id,
|
||||||
dmsFk: document.dmsFk,
|
dmsFk: dmsFk,
|
||||||
dms: {
|
dms: {
|
||||||
id: documentId,
|
id: documentId,
|
||||||
file: document.dmsFk + '.pdf',
|
file: dmsFk + '.pdf',
|
||||||
isDocuware: true,
|
isDocuware: true,
|
||||||
hasFile: false,
|
hasFile: false,
|
||||||
reference: worker?.fi,
|
reference: worker?.fi,
|
||||||
dmsFk: document.dmsFk,
|
dmsFk: dmsFk,
|
||||||
url: document.url,
|
url: document.url,
|
||||||
download: `WorkerDms/${document.dmsFk}/docuwareDownload`,
|
download: `WorkerDms/${document.dmsFk}/docuwareDownload`,
|
||||||
description: document.description + ' - ' + document.state,
|
description: document.description + ' - ' + document.state,
|
||||||
|
|
Loading…
Reference in New Issue