summaryrefslogtreecommitdiff
path: root/src/server/api/service
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-04-07 13:03:19 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-04-07 13:03:19 +0900
commitddced43ec7251fccaf915028df5d3b25399a4499 (patch)
tree8cd96373981f523967926b6014c640e2b48c00d3 /src/server/api/service
parentIgnore post that not public (diff)
parentMerge pull request #1410 from akihikodaki/objec (diff)
downloadsharkey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.gz
sharkey-ddced43ec7251fccaf915028df5d3b25399a4499.tar.bz2
sharkey-ddced43ec7251fccaf915028df5d3b25399a4499.zip
Merge branch 'master' into refactor
Diffstat (limited to 'src/server/api/service')
-rw-r--r--src/server/api/service/github.ts4
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,