From 46234a7ad766d364f82ea363ac91561632f3d902 Mon Sep 17 00:00:00 2001 From: aurik3 <37228512+aurik3@users.noreply.github.com> Date: Mon, 19 Sep 2022 16:57:58 -0500 Subject: [PATCH] asd assd --- components/chatting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chatting.js b/components/chatting.js index 71be04c..4f53536 100644 --- a/components/chatting.js +++ b/components/chatting.js @@ -18,7 +18,7 @@ router.post('/sendmessage', async (req,res) => { console.log(message); console.log(phone); - if (phone == undefined || message == undefined) { + if (phone == undefined || message == undefined|| phone == 0 || message == empty) { res.send({ status:"error", message:"please enter valid phone and message" }) } else { client.sendMessage(phone + '@c.us', message).then((response) => {