fix: improve control of expected data

This commit is contained in:
bsourisse 2023-03-13 09:50:49 +01:00
parent 9912eb9b84
commit ccc5495080

View file

@ -40,7 +40,7 @@ export default async function handler(req, res) {
}
//2 : control the data
if (!sendTestApprise) {
if (sendTestApprise !== true) {
res.status(422).json({ message: 'Unexpected data' });
return;
}