Skip to content

Commit

Permalink
fix(basic.gblib): TODO removal.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 26, 2022
1 parent 9ad1d56 commit c0133a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/DebuggerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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] = {};
}
Expand Down
6 changes: 1 addition & 5 deletions packages/whatsapp.gblib/services/WhatsappDirectLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down Expand Up @@ -251,7 +247,7 @@ export class WhatsappDirectLine extends GBService {
await createClient.bind(this)(this.browserWSEndpoint);

setUrl = false;
}

break;

case 'chatapi':
Expand Down

0 comments on commit c0133a8

Please sign in to comment.