From e6730802f6dd7f5611c226c920e95c42e4cb3437 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 8 May 2019 16:03:56 +0200 Subject: [PATCH] Use proper syntax for sending HTTP status Fixes deprecation warnings for the old syntax. --- integrations/github.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/integrations/github.js b/integrations/github.js index 77996bf..8fa85dc 100644 --- a/integrations/github.js +++ b/integrations/github.js @@ -162,13 +162,13 @@ module.exports = async function(robot, kredits) { if (evt === 'pull_request' && data.action === 'closed' && data.pull_request.merged) { handleGitHubPullRequestClosed(data); - res.send(200); + res.sendStatus(200); } else if (evt === 'issues' && data.action === 'closed') { handleGitHubIssueClosed(data); - res.send(200); + res.sendStatus(200); } else { - res.send(200); + res.sendStatus(200); } });