From 37c760b0818bd45e67b192f42423edb1b0b7567f Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 2 May 2021 17:01:50 +1200 Subject: [PATCH] allow empty contents --- api/src/api/v2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/api/v2.js b/api/src/api/v2.js index 72db74e..f961913 100644 --- a/api/src/api/v2.js +++ b/api/src/api/v2.js @@ -37,7 +37,7 @@ router.post('/execute', async function(req, res){ } for (const [i,file] of files.entries()) { - if(!file.content || typeof file.content !== "string"){ + if(typeof file.content !== "string"){ return res .status(400) .send({