From c40c0c54bdaf4c7d9174dcfe973667552860ef9e Mon Sep 17 00:00:00 2001 From: Leifer Mendez Date: Sat, 19 Nov 2022 21:17:18 +0100 Subject: [PATCH] nothing --- packages/bot/io/flow.class.js | 5 ----- packages/bot/io/methods/addAnswer.js | 8 -------- 2 files changed, 13 deletions(-) diff --git a/packages/bot/io/flow.class.js b/packages/bot/io/flow.class.js index af4fc29..14cbd28 100644 --- a/packages/bot/io/flow.class.js +++ b/packages/bot/io/flow.class.js @@ -1,17 +1,12 @@ const { toSerialize } = require('./methods') class FlowClass { - allContexts = [] allCallbacks = [] flowSerialize = [] flowRaw = [] constructor(_flow) { if (!Array.isArray(_flow)) throw new Error('Esto debe ser un ARRAY') this.flowRaw = _flow - this.allContexts = _flow - .map((ctxs) => ctxs.ctx.contexts) - .flat(2) - .map((c, i) => ({ getCtx: c?.getCtx, index: i })) this.allCallbacks = _flow .map((cbIn) => cbIn.ctx.callbacks) diff --git a/packages/bot/io/methods/addAnswer.js b/packages/bot/io/methods/addAnswer.js index aa7b8e3..8947015 100644 --- a/packages/bot/io/methods/addAnswer.js +++ b/packages/bot/io/methods/addAnswer.js @@ -52,13 +52,6 @@ const addAnswer = }, ]) - const contexts = [].concat(inCtx.contexts).concat([ - { - ref: lastCtx.ref, - getCtx: () => lastCtx, - }, - ]) - return { ...lastCtx, ref, @@ -66,7 +59,6 @@ const addAnswer = json, options, callbacks, - contexts, } }