diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 06:23:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-07 06:23:38 +0900 |
| commit | 866797a0058a0eac1e5c1d7f6cdeeab845a505ae (patch) | |
| tree | f468586edb8e5dad538ade96ad4b526d77dd4e9d /src/queue | |
| parent | Fix bug (diff) | |
| download | sharkey-866797a0058a0eac1e5c1d7f6cdeeab845a505ae.tar.gz sharkey-866797a0058a0eac1e5c1d7f6cdeeab845a505ae.tar.bz2 sharkey-866797a0058a0eac1e5c1d7f6cdeeab845a505ae.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 f5d162fd0c..422e355b5f 100644 --- a/src/queue/processors/http/deliver.ts +++ b/src/queue/processors/http/deliver.ts @@ -7,7 +7,7 @@ export default async (job: kue.Job, done): Promise<void> => { await request(job.data.user, job.data.to, job.data.content); done(); } catch (res) { - if (res.statusCode >= 300 && res.statusCode < 400) { + if (res.statusCode >= 400 && res.statusCode < 500) { // HTTPステータスコード4xxはクライアントエラーであり、それはつまり // 何回再送しても成功することはないということなのでエラーにはしないでおく done(); |