fix(all): #123 done.

This commit is contained in:
Rodrigo Rodriguez 2023-07-17 15:37:58 -03:00
parent 14fcde3622
commit 899696d7e5
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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.