From a7fb1ed93221c934548cbb626d7b76d313531aa1 Mon Sep 17 00:00:00 2001 From: dburandt Date: Sun, 26 Apr 2020 21:42:00 -0400 Subject: [PATCH] change deprecated usage of res.send --- src/ExpressReceiver.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ExpressReceiver.ts b/src/ExpressReceiver.ts index fb1a95a20..9cd87395f 100644 --- a/src/ExpressReceiver.ts +++ b/src/ExpressReceiver.ts @@ -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; } }