오픈소스 직접뷰어 기능 추가

This commit is contained in:
koj729
2026-06-15 16:10:05 +09:00
parent d13c414d7f
commit cb0c42fbeb
21 changed files with 1202 additions and 33 deletions

View File

@@ -40,11 +40,11 @@ convertPdfQueueEvents.on('failed', async ({ jobId, failedReason }) => {
let jobName = job.name;
let jobQueueName = job.queue.name;
let { resourcePath, projectId, userInfoString, serviceName, dataId } = job.data;
if (!resourcePath) resourcePath = job.progress.resourcePath;
if (!projectId) projectId = job.progress.projectId;
if (!userInfoString) userInfoString = job.progress.userInfoString;
if (!serviceName) serviceName = job.progress.serviceName;
if (!dataId) dataId = job.progress.dataId;
if (!resourcePath && job.progress && typeof job.progress === 'object') resourcePath = job.progress.resourcePath;
if (!projectId && job.progress && typeof job.progress === 'object') projectId = job.progress.projectId;
if (!userInfoString && job.progress && typeof job.progress === 'object') userInfoString = job.progress.userInfoString;
if (!serviceName && job.progress && typeof job.progress === 'object') serviceName = job.progress.serviceName;
if (!dataId && job.progress && typeof job.progress === 'object') dataId = job.progress.dataId;
let userInfo = JSON.parse(userInfoString);
let { user_id, user_nm } = userInfo;