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; }