Skip to content

Commit

Permalink
Merge pull request #487 from dburandt/fix-express-response
Browse files Browse the repository at this point in the history
change deprecated usage of res.send
  • Loading branch information
seratch authored Apr 27, 2020
2 parents d1ae744 + a7fb1ed commit 455bf58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExpressReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default class ExpressReceiver implements Receiver {
this.logger.debug('stored response sent');
}
} catch (err) {
res.send(500);
res.status(500).send();
throw err;
}
}
Expand Down

0 comments on commit 455bf58

Please sign in to comment.