Skip to content

Commit

Permalink
fix(core.gbapp): Dynamic services from .gbapps.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Sep 21, 2020
1 parent 48ae0a2 commit c01430f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/core.gbapp/services/GBMinService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export class GBMinService {
min.scriptMap = {};
min.sandBoxMap = {};
min.packages = sysPackages;
min.appPackages = appPackages;
min.appPackages = appPackages;
// TODO: min.appPackages = core.getPackagesByInstanceId(min.instance.instanceId);

// Create a hub of services available in .gbapps.
Expand All @@ -491,7 +491,7 @@ export class GBMinService {
await CollectionUtil.asyncForEach(min.appPackages, async (e: IGBPackage) => {
let services: ConcatArray<never>;
if ((services = await e.onExchangeData(min, 'getServices', null))) {
min.gbappServices.concat(services);
min.gbappServices = Object.assign(min.gbappServices, services);
}
});

Expand Down Expand Up @@ -806,5 +806,4 @@ export class GBMinService {
}
}
}

}

0 comments on commit c01430f

Please sign in to comment.