diff --git a/index.js b/index.js index 424d201..1e00f37 100644 --- a/index.js +++ b/index.js @@ -39,7 +39,7 @@ app.post("/v1/messages", apiKeyAuth, (req, res) => { res.setHeader("Access-Control-Allow-Origin", "*"); try { let jsonBody = JSON.parse(req.rawBody); - if (jsonBody.stream == false) { + if (!jsonBody.stream) { res.send( JSON.stringify({ id: uuidv4(),