fix(basic.gblib): TODO removal.

This commit is contained in:
rodrigorodriguez 2022-12-26 07:53:00 -03:00
parent 9ad1d5693e
commit c0133a8960
2 changed files with 2 additions and 6 deletions

View file

@ -273,7 +273,7 @@ export class DebuggerService {
public async getRunning ({ botId, botApiKey, scriptName }) {
let error;
botId = botId[0]; // TODO: Handle call in POST.
botId = botId[0];
if (!GBServer.globals.debuggers[botId]) {
GBServer.globals.debuggers[botId] = {};
}

View file

@ -130,10 +130,6 @@ export class WhatsappDirectLine extends GBService {
case 'GeneralBots':
const minBoot = GBServer.globals.minBoot as any;
// TODO: REMOVE THIS.
if (minBoot.botId !== this.botId) {
this.customClient = minBoot.whatsAppDirectLine.customClient;
} else {
// Initialize the browser using a local profile for each bot.
const gbaiName = `${this.min.botId}.gbai`;
@ -251,7 +247,7 @@ export class WhatsappDirectLine extends GBService {
await createClient.bind(this)(this.browserWSEndpoint);
setUrl = false;
}
break;
case 'chatapi':