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 }) {
|
public async getRunning ({ botId, botApiKey, scriptName }) {
|
||||||
let error;
|
let error;
|
||||||
botId = botId[0]; // TODO: Handle call in POST.
|
botId = botId[0];
|
||||||
if (!GBServer.globals.debuggers[botId]) {
|
if (!GBServer.globals.debuggers[botId]) {
|
||||||
GBServer.globals.debuggers[botId] = {};
|
GBServer.globals.debuggers[botId] = {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -130,10 +130,6 @@ export class WhatsappDirectLine extends GBService {
|
||||||
case 'GeneralBots':
|
case 'GeneralBots':
|
||||||
const minBoot = GBServer.globals.minBoot as any;
|
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.
|
// Initialize the browser using a local profile for each bot.
|
||||||
|
|
||||||
const gbaiName = `${this.min.botId}.gbai`;
|
const gbaiName = `${this.min.botId}.gbai`;
|
||||||
|
@ -251,7 +247,7 @@ export class WhatsappDirectLine extends GBService {
|
||||||
await createClient.bind(this)(this.browserWSEndpoint);
|
await createClient.bind(this)(this.browserWSEndpoint);
|
||||||
|
|
||||||
setUrl = false;
|
setUrl = false;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'chatapi':
|
case 'chatapi':
|
||||||
|
|
Loading…
Add table
Reference in a new issue