mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 00:45:41 +00:00
Merge pull request #1419 from CyberL1/fix/send-204
This commit is contained in:
@@ -355,10 +355,8 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) =>
|
||||
},
|
||||
];
|
||||
break;
|
||||
case "ping":
|
||||
return res.status(204);
|
||||
default:
|
||||
return res.send(500);
|
||||
return res.status(204).end(); // Yes, discord sends 204 even on invalid event
|
||||
}
|
||||
|
||||
req.body = discordPayload;
|
||||
|
||||
Reference in New Issue
Block a user