Update typebot.service.ts

This commit is contained in:
Francis Breit 2023-10-02 10:15:08 -03:00 committed by GitHub
parent 696b0f4708
commit 5202060812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,8 +125,7 @@ export class TypebotService {
const response = await this.createNewSession(instance, { const response = await this.createNewSession(instance, {
url: url, url: url,
// linha incluida por Francis new5: // linha incluida por Francis
enabled: true,
enabled_typebot: enabled_typebot, enabled_typebot: enabled_typebot,
typebot: typebot, typebot: typebot,
remoteJid: remoteJid, remoteJid: remoteJid,
@ -202,8 +201,8 @@ const id = Math.floor(Math.random() * 10000000000).toString();
typebot: { typebot: {
...instance, ...instance,
typebot: { typebot: {
// linha incluida por Francis neu 4: // linha incluida por Francis:
// enabled_typebot: enabled_typebot, enabled_typebot: enabled_typebot,
url: url, url: url,
remoteJid: remoteJid, remoteJid: remoteJid,
typebot: typebot, typebot: typebot,
@ -282,8 +281,9 @@ const id = Math.floor(Math.random() * 10000000000).toString();
}); });
const typebotData = { const typebotData = {
// linha incluida por Francis new4: // linha incluida por Francis new 4:
// enabled: data.enabled_typebot, // enabled: data.enabled_typebot,
enabled: true,
url: data.url, url: data.url,
typebot: data.typebot, typebot: data.typebot,
expire: data.expire, expire: data.expire,