diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 18:43:06 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-05 18:43:06 +0900 |
| commit | 7403f38fb43b0ad747236061a591cbf94e198ba6 (patch) | |
| tree | bcfb900e3b9b19fb5ce7928a5f075b5d16b02e1e /src/queue/processors/http/report-github-failure.ts | |
| parent | wip (diff) | |
| download | sharkey-7403f38fb43b0ad747236061a591cbf94e198ba6.tar.gz sharkey-7403f38fb43b0ad747236061a591cbf94e198ba6.tar.bz2 sharkey-7403f38fb43b0ad747236061a591cbf94e198ba6.zip | |
wip
Diffstat (limited to 'src/queue/processors/http/report-github-failure.ts')
| -rw-r--r-- | src/queue/processors/http/report-github-failure.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/queue/processors/http/report-github-failure.ts b/src/queue/processors/http/report-github-failure.ts index 4f6f5ccee5..e747d062d3 100644 --- a/src/queue/processors/http/report-github-failure.ts +++ b/src/queue/processors/http/report-github-failure.ts @@ -1,6 +1,6 @@ import * as request from 'request-promise-native'; -import User from '../../models/user'; -const createPost = require('../../server/api/endpoints/posts/create'); +import User from '../../../models/user'; +import createPost from '../../../api/post/create'; export default async ({ data }) => { const asyncBot = User.findOne({ _id: data.userId }); @@ -20,5 +20,5 @@ export default async ({ data }) => { `**⚠️BUILD STILL FAILED⚠️**: ?[${data.message}](${data.htmlUrl})` : `**🚨BUILD FAILED🚨**: →→→?[${data.message}](${data.htmlUrl})←←←`; - createPost({ text }, await asyncBot); + createPost(await asyncBot, { text }); }; |