header error fix

This commit is contained in:
Shay
2022-04-05 16:14:55 -07:00
parent 9d07295b64
commit a7f3420435

2
app.js
View File

@@ -30,7 +30,7 @@ app.post('/interactions', function (req, res) {
* Handle verification requests
*/
if (type === InteractionType.PING) {
return res.json({ "type": InteractionResponseType.PONG });
return res.send({ "type": InteractionResponseType.PONG });
}
/**