diff --git a/Dockerfile b/Dockerfile index 6d53a27b..e5c218cc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM node:20.7.0-alpine -LABEL version="1.5.2" description="Api to control whatsapp features through http requests." +LABEL version="1.5.3" description="Api to control whatsapp features through http requests." LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes" LABEL contact="contato@agenciadgcode.com" diff --git a/package.json b/package.json index 34b7e855..16c7466d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "evolution-api", - "version": "1.5.2", + "version": "1.5.3", "description": "Rest api for communication with WhatsApp", "main": "./dist/src/main.js", "scripts": { diff --git a/src/whatsapp/services/typebot.service.ts b/src/whatsapp/services/typebot.service.ts index 5c48c45b..8466ff19 100644 --- a/src/whatsapp/services/typebot.service.ts +++ b/src/whatsapp/services/typebot.service.ts @@ -111,6 +111,7 @@ export class TypebotService { const prefilledVariables = { remoteJid: remoteJid, + instanceName: instance.instanceName, }; variables.forEach((variable) => { @@ -525,7 +526,7 @@ export class TypebotService { return; } - if (content.toLowerCase() === keyword_finish.toLowerCase()) { + if (keyword_finish && content.toLowerCase() === keyword_finish.toLowerCase()) { sessions.splice(sessions.indexOf(session), 1); const typebotData = {