Fix validation yet again

This commit is contained in:
Vrganj 2021-01-14 20:26:41 +01:00
parent 2bcd133edf
commit 11b2520189
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ app.post('/execute', (req, res) => {
code: 'missing_source',
message: 'source field is invalid',
});
} else if (body.args && Array.isArray(body.args)) {
} else if (body.args && !Array.isArray(body.args)) {
return res.status(400).json({
code: 'invalid_args',
message: 'args field is not an array',