mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
Resolve linter issues
This commit is contained in:
@@ -12,7 +12,9 @@ module.exports = {
|
||||
createComment: {
|
||||
async post(root, args, context, info, result) {
|
||||
debug(`Posting notification to Slack webhook: ${SLACK_WEBHOOK_URL}`);
|
||||
const { comment: { body: text, created_at: createdAt } } = result;
|
||||
const {
|
||||
comment: { body: text, created_at: createdAt },
|
||||
} = result;
|
||||
const username = context.user.username;
|
||||
process.nextTick(async () => {
|
||||
const response = await fetch(SLACK_WEBHOOK_URL, {
|
||||
|
||||
Reference in New Issue
Block a user