summaryrefslogtreecommitdiff
path: root/src/queue/processors/http/index.ts
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-05 01:04:44 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-04-05 01:04:44 +0900
commite330ac1934516807757afe2d2760fa21b27006e6 (patch)
tree84171f44928b460ea3c23a32e4b53bb0f2879318 /src/queue/processors/http/index.ts
parentRetry HTTP requests (diff)
downloadmisskey-e330ac1934516807757afe2d2760fa21b27006e6.tar.gz
misskey-e330ac1934516807757afe2d2760fa21b27006e6.tar.bz2
misskey-e330ac1934516807757afe2d2760fa21b27006e6.zip
Let unhandled rejection handler handle rejections in jobs
Diffstat (limited to 'src/queue/processors/http/index.ts')
-rw-r--r--src/queue/processors/http/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/queue/processors/http/index.ts b/src/queue/processors/http/index.ts
index 8f9aa717c3..0ea79305c6 100644
--- a/src/queue/processors/http/index.ts
+++ b/src/queue/processors/http/index.ts
@@ -14,4 +14,4 @@ const handlers = {
unfollow
};
-export default (job, done) => handlers[job.data.type](job).then(() => done(), done);
+export default (job, done) => handlers[job.data.type](job, done);