fix(basic.gblib): TODO removal.
This commit is contained in:
parent
9ad1d5693e
commit
c0133a8960
2 changed files with 2 additions and 6 deletions
|
@ -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] = {};
|
||||
}
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Add table
Reference in a new issue