feat(bot): 🔥 improvement provider handler

This commit is contained in:
Leifer Mendez
2022-12-05 14:49:23 +01:00
parent ce8a96b958
commit 4154cc2230
3 changed files with 92 additions and 10 deletions

View File

@@ -55,6 +55,9 @@ class CoreClass {
const { body, from } = messageInComming
let msgToSend = []
let fallBackFlag = false
if (!body.length) return
const prevMsg = await this.databaseClass.getPrevByNumber(from)
const refToContinue = this.flowClass.findBySerialize(
prevMsg?.refSerialize