From e1a38c9d3036805de7b68d8b033a6853ade73586 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Mon, 17 Jul 2023 15:37:58 -0300 Subject: [PATCH] fix(all): #123 done. --- packages/core.gbapp/services/GBCoreService.ts | 2 +- packages/core.gbapp/services/GBMinService.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core.gbapp/services/GBCoreService.ts b/packages/core.gbapp/services/GBCoreService.ts index 4329ed92..d7a890e7 100644 --- a/packages/core.gbapp/services/GBCoreService.ts +++ b/packages/core.gbapp/services/GBCoreService.ts @@ -408,7 +408,7 @@ ENDPOINT_UPDATE=true let matchingAppPackages = []; await CollectionUtil.asyncForEach(appPackages, async appPackage => { const filenameOnly = Path.basename(appPackage.name); - const matchedApp = apps.find(app => app.name === filenameOnly || app.name === filenameOnly); + const matchedApp = apps.find(app => app.name === filenameOnly); if (matchedApp) { matchingAppPackages.push(appPackage); } diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index d8fe0674..71462101 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -366,7 +366,7 @@ export class GBMinService { // Calls the loadBot context.activity for all packages. - await this.invokeLoadBot(GBServer.globals.appPackages, GBServer.globals.sysPackages, min); + await this.invokeLoadBot(min.appPackages, GBServer.globals.sysPackages, min); // Serves individual URL for each bot conversational interface. @@ -724,7 +724,7 @@ export class GBMinService { access_token: min.instance.facebookWorkplaceAccessToken }); } - // https://github.com/GeneralBots/BotServer/issues/123 + min.appPackages = await this.core['getApplicationsByInstanceId'] (appPackages, min.instance.instanceId); // Creates a hub of services available in .gbapps.