오픈소스 직접뷰어 기능 추가
This commit is contained in:
10
queue.js
10
queue.js
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user