mirror of
https://github.com/Ravinou/borgwarehouse
synced 2024-05-18 21:46:38 +02:00
fix: improve control of expected data
This commit is contained in:
parent
9912eb9b84
commit
ccc5495080
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue