diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-04-04 22:48:27 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-04 22:48:27 +0900 |
| commit | cf160285f82a200a6f042cf924272809280bac79 (patch) | |
| tree | 9cf0211613474ecf5868e8a2bd59469a83bc9bb3 /src/server/api/service/github.ts | |
| parent | Merge pull request #1393 from akihikodaki/duplicate (diff) | |
| parent | Retry HTTP requests (diff) | |
| download | misskey-cf160285f82a200a6f042cf924272809280bac79.tar.gz misskey-cf160285f82a200a6f042cf924272809280bac79.tar.bz2 misskey-cf160285f82a200a6f042cf924272809280bac79.zip | |
Merge pull request #1394 from akihikodaki/duplicate
Retry HTTP requests
Diffstat (limited to 'src/server/api/service/github.ts')
| -rw-r--r-- | src/server/api/service/github.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/api/service/github.ts b/src/server/api/service/github.ts index 4fd59c2a94..5fc4a92f57 100644 --- a/src/server/api/service/github.ts +++ b/src/server/api/service/github.ts @@ -3,7 +3,7 @@ import * as express from 'express'; //const crypto = require('crypto'); import User from '../../../models/user'; import config from '../../../config'; -import queue from '../../../queue'; +import { createHttp } from '../../../queue'; module.exports = async (app: express.Application) => { if (config.github_bot == null) return; @@ -42,7 +42,7 @@ module.exports = async (app: express.Application) => { const commit = event.commit; const parent = commit.parents[0]; - queue.create('http', { + createHttp({ type: 'gitHubFailureReport', userId: bot._id, parentUrl: parent.url, |