feat(provider): possible get class provider

This commit is contained in:
Leifer Mendez
2023-02-04 18:31:51 +01:00
parent 2ecc41f3f0
commit 76ba717927
3 changed files with 45 additions and 6 deletions

View File

@@ -196,8 +196,11 @@ class CoreClass {
// 📄 Se encarga de revisar si el contexto del mensaje tiene callback y ejecutarlo
const cbEveryCtx = async (inRef) => {
const provider = this.providerClass
if (!this.flowClass.allCallbacks[inRef]) return Promise.resolve()
return this.flowClass.allCallbacks[inRef](messageCtxInComming, {
provider,
fallBack,
flowDynamic,
endFlow,