diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-08-10 14:15:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-08-10 14:15:12 +0900 |
| commit | 6372451d176c7d780d587142edf9645fef53576c (patch) | |
| tree | 7f7e1449c3f6767257f4d3bc6f1603f346bb83c9 /src/queue | |
| parent | 5.20.1 (diff) | |
| download | sharkey-6372451d176c7d780d587142edf9645fef53576c.tar.gz sharkey-6372451d176c7d780d587142edf9645fef53576c.tar.bz2 sharkey-6372451d176c7d780d587142edf9645fef53576c.zip | |
Fix bug
Diffstat (limited to 'src/queue')
| -rw-r--r-- | src/queue/processors/http/deliver.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<void> => { 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(); } |