allow empty contents

This commit is contained in:
Thomas Hobson 2021-05-02 17:01:50 +12:00
parent 6e748c614c
commit 37c760b081
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ router.post('/execute', async function(req, res){
} }
for (const [i,file] of files.entries()) { for (const [i,file] of files.entries()) {
if(!file.content || typeof file.content !== "string"){ if(typeof file.content !== "string"){
return res return res
.status(400) .status(400)
.send({ .send({