From ccc549508015c9f7f0dfee097d4768a2d7b59ca2 Mon Sep 17 00:00:00 2001 From: bsourisse Date: Mon, 13 Mar 2023 09:50:49 +0100 Subject: [PATCH] fix: improve control of expected data --- pages/api/account/sendTestApprise.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/api/account/sendTestApprise.js b/pages/api/account/sendTestApprise.js index d7ae413..9ffd44f 100644 --- a/pages/api/account/sendTestApprise.js +++ b/pages/api/account/sendTestApprise.js @@ -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; }