From 6cd98786324638f180cca687a5af802e058050ad Mon Sep 17 00:00:00 2001 From: TheEssem Date: Tue, 6 Oct 2020 15:21:39 -0500 Subject: [PATCH] Remove warnings while building image commands --- api/index.js | 1 - binding.gyp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/api/index.js b/api/index.js index b7822f5..3cb779e 100644 --- a/api/index.js +++ b/api/index.js @@ -39,7 +39,6 @@ app.post("/run", upload.single("image"), async (req, res, next) => { if (!isValidJSON(req.body.data)) return res.sendStatus(400); const object = JSON.parse(req.body.data); - if (!magick.check(object.cmd)) return res.sendStatus(400); object.path = req.file ? req.file.path : null; diff --git a/binding.gyp b/binding.gyp index e32dc70..6fc0867 100644 --- a/binding.gyp +++ b/binding.gyp @@ -12,7 +12,7 @@ "libraries": [ "