Corrected log position

This commit is contained in:
jeanchristophe.mqt@gmail.com 2024-03-29 10:12:09 +01:00
parent c21e9594a5
commit d6b7e51389
2 changed files with 3 additions and 4 deletions

View file

@ -136,10 +136,9 @@ var getId = function (args, arr, arrHost, headers, fileName, refreshType) { retu
})];
case 4:
id = _d.apply(_c, [(_j.sent())]);
_j.label = 5;
case 5:
args.jobLog("".concat(refreshType.content, " ").concat(id !== -1 ? "".concat(id, " found") : 'not found', " for '").concat((0, fileUtils_1.getFileName)(fileName), "'"));
return [2 /*return*/, id];
_j.label = 5;
case 5: return [2 /*return*/, id];
}
});
}); };

View file

@ -115,8 +115,8 @@ const getId = async (
headers,
})),
);
args.jobLog(`${refreshType.content} ${id !== -1 ? `${id} found` : 'not found'} for '${getFileName(fileName)}'`);
}
args.jobLog(`${refreshType.content} ${id !== -1 ? `${id} found` : 'not found'} for '${getFileName(fileName)}'`);
return id;
};