fix(bot): 🐛 body undefined

This commit is contained in:
Leifer Mendez
2023-01-16 11:11:33 +01:00
parent 32f6a70f8f
commit ecf0eef928
2 changed files with 8 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ class CoreClass {
const { body, from } = messageCtxInComming
let msgToSend = []
let fallBackFlag = false
if (!body) return
if (!body.length) return
const prevMsg = await this.databaseClass.getPrevByNumber(from)