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(); }