restore flow working!

This commit is contained in:
Leifer Mendez
2022-11-18 19:55:57 +01:00
parent e3664cc973
commit 6953c954a8
10 changed files with 101 additions and 27 deletions

View File

@@ -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