Skip to content
Snippets Groups Projects
Commit 866797a0 authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 66346495
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment