mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 20:19:15 +00:00
fix(cli): ⚡ working flowDynamic test
This commit is contained in:
@@ -172,10 +172,11 @@ class CoreClass {
|
||||
for (const msg of parseListMsg) {
|
||||
await this.sendProviderAndSave(from, msg)
|
||||
}
|
||||
|
||||
const nextFlow = await this.flowClass.find(refToContinue?.ref, true)
|
||||
const filterNextFlow = nextFlow.filter((msg) => msg.refSerialize !== currentPrev?.refSerialize)
|
||||
console.log(`🚩🚩🚩`, filterNextFlow?.answer)
|
||||
|
||||
if (filterNextFlow.map((i) => i.keyword).includes(currentPrev?.ref)) return
|
||||
|
||||
return sendFlow(filterNextFlow, from, { prev: undefined })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user