refs #5712 fix empty data
gitea/salix/pipeline/head Build queued... Details

This commit is contained in:
Alex Moreno 2023-07-05 12:14:26 +02:00
parent 444b08c566
commit 5d933da28a
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ module.exports = Self => {
'Document ID': 'id'
};
workerDocuware =
await models.Docuware.getById('hr', worker.lastName + worker.firstName, docuwareParse);
await models.Docuware.getById('hr', worker.lastName + worker.firstName, docuwareParse) ?? [];
for (document of workerDocuware) {
const defaultData = {
file: 'dw' + document.id + '.png',