Use proper syntax for sending HTTP status

Fixes deprecation warnings for the old syntax.
This commit is contained in:
Basti 2019-05-08 16:03:56 +02:00
parent d2976b312e
commit e6730802f6
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -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);
}
});