fix(core.gbapp): Dynamic services from .gbapps.
This commit is contained in:
parent
48ae0a2b4f
commit
c01430f0f3
1 changed files with 2 additions and 3 deletions
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -806,5 +806,4 @@ export class GBMinService {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue