@bot-whatsapp/bot
Advanced tools
Comparing version 0.0.202-alpha.0 to 0.0.203-alpha.0
@@ -218,3 +218,3 @@ const { EventEmitter } = require('node:events') | ||
const listProcessWait = this.queuePrincipal.getIdsCallbacs(from) | ||
const listProcessWait = this.queuePrincipal.getIdsCallback(from) | ||
if (!listProcessWait.length) { | ||
@@ -232,2 +232,3 @@ this.queuePrincipal.setIdsCallbacks(from, listIdsRefCallbacks) | ||
try { | ||
// this.queuePrincipal.clearQueue(from); | ||
await this.queuePrincipal.enqueue( | ||
@@ -238,4 +239,5 @@ from, | ||
await this.sendProviderAndSave(numberOrId, ctxMessage) | ||
.then(() => resolveCbEveryCtx(ctxMessage)) | ||
logger.log(`[QUEUE_SE_ENVIO]: `, ctxMessage) | ||
await resolveCbEveryCtx(ctxMessage) | ||
// await resolveCbEveryCtx(ctxMessage) | ||
}, | ||
@@ -268,5 +270,5 @@ ctxMessage.ref | ||
if (nextChildMessages?.length) | ||
return exportFunctionsSend(() => sendFlow(nextChildMessages, from, { prev: undefined })) | ||
return exportFunctionsSend(async() => await sendFlow(nextChildMessages, from, { prev: undefined })) | ||
return exportFunctionsSend(() => sendFlow(filterNextFlow, from, { prev: undefined })) | ||
return exportFunctionsSend(async() => await sendFlow(filterNextFlow, from, { prev: undefined })) | ||
} | ||
@@ -554,6 +556,6 @@ } | ||
return Promise.resolve | ||
return Promise.resolve() | ||
} catch (err) { | ||
logger.log(`[ERROR ID (${ctxMessage.ref})]: `, err) | ||
return Promise.reject | ||
return Promise.reject() | ||
} | ||
@@ -560,0 +562,0 @@ } |
{ | ||
"name": "@bot-whatsapp/bot", | ||
"version": "0.0.202-alpha.0", | ||
"version": "0.0.203-alpha.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/bundle.bot.cjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150096
3855