From 948a133b7bf6744e57ea0751ba1d8ed7e2f90eda Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 9 Mar 2019 18:15:44 +0900 Subject: [PATCH] Fix log --- src/queue/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/queue/index.ts b/src/queue/index.ts index 3b3f0b72b5..eccb38b5e2 100644 --- a/src/queue/index.ts +++ b/src/queue/index.ts @@ -38,11 +38,11 @@ deliverQueue inboxQueue .on('waiting', (jobId) => inboxLogger.debug(`waiting id=${jobId}`)) - .on('active', (job) => inboxLogger.debug(`active id=${job.id} to=${job.data.to}`)) - .on('completed', (job, result) => inboxLogger.debug(`completed(${result}) id=${job.id} to=${job.data.to}`)) - .on('failed', (job, err) => inboxLogger.debug(`failed(${err}) id=${job.id} to=${job.data.to}`)) + .on('active', (job) => inboxLogger.debug(`active id=${job.id}`)) + .on('completed', (job, result) => inboxLogger.debug(`completed(${result}) id=${job.id}`)) + .on('failed', (job, err) => inboxLogger.debug(`failed(${err}) id=${job.id}`)) .on('error', (error) => inboxLogger.error(`error ${error}`)) - .on('stalled', (job) => inboxLogger.warn(`stalled id=${job.id} to=${job.data.to}`)); + .on('stalled', (job) => inboxLogger.warn(`stalled id=${job.id}`)); export function deliver(user: ILocalUser, content: any, to: any) { if (content == null) return null;