Use proper syntax for sending HTTP status
Fixes deprecation warnings for the old syntax.
This commit is contained in:
parent
d2976b312e
commit
e6730802f6
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user