mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-19 03:59:17 +00:00
restore flow working!
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
const { toSerialize } = require('./methods')
|
||||
|
||||
class FlowClass {
|
||||
flow
|
||||
constructor(_flow) {
|
||||
this.flow = _flow
|
||||
this.flow = toSerialize(_flow)
|
||||
}
|
||||
|
||||
find = (keyOrWord, symbol = false) => {
|
||||
@@ -25,6 +27,9 @@ class FlowClass {
|
||||
findIn(keyOrWord, symbol)
|
||||
return messages
|
||||
}
|
||||
|
||||
findBySerialize = (refSerialize) =>
|
||||
this.flow.find((r) => r.refSerialize === refSerialize)
|
||||
}
|
||||
|
||||
module.exports = FlowClass
|
||||
|
||||
Reference in New Issue
Block a user