summaryrefslogtreecommitdiff
path: root/src/queue/processors/http/report-github-failure.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/queue/processors/http/report-github-failure.ts')
-rw-r--r--src/queue/processors/http/report-github-failure.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/queue/processors/http/report-github-failure.ts b/src/queue/processors/http/report-github-failure.ts
index 1e0b51f89f..13f9afadd3 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';
-import createPost from '../../../services/post/create';
+import createNote from '../../../services/note/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(await asyncBot, { text });
+ createNote(await asyncBot, { text });
};