Adjustment to start typebot, added startSession parameter

This commit is contained in:
Davidson Gomes 2023-10-02 17:05:22 -03:00
parent c35c5faaa4
commit f5eeb16bb1
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -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": {

View File

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