From 6372451d176c7d780d587142edf9645fef53576c Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 10 Aug 2018 14:15:12 +0900 Subject: [PATCH] Fix bug --- src/queue/processors/http/deliver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/queue/processors/http/deliver.ts b/src/queue/processors/http/deliver.ts index 75e46559dd..e14a162105 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -7,7 +7,7 @@ export default async (job: bq.Job, done: any): Promise => { await request(job.data.user, job.data.to, job.data.content); done(); } catch (res) { - if (!res.hasOwnProperty('statusCode')) { + if (res == null || !res.hasOwnProperty('statusCode')) { console.warn(`deliver failed (unknown): ${res}`); return done(); }