fix(kb.gbapp): Fix importing packages.
This commit is contained in:
parent
0fc3d714c0
commit
917c8ac58e
2 changed files with 3 additions and 3 deletions
|
@ -560,7 +560,7 @@ export class GBDeployer implements IGBDeployer {
|
|||
});
|
||||
}
|
||||
public async deployPackage(min: GBMinInstance, localPath: string) {
|
||||
// TODO: @alanperdomo: Adjust interface mismatch.
|
||||
// TODO: Adjust interface mismatch.
|
||||
}
|
||||
/**
|
||||
* Deploys a folder into the bot storage.
|
||||
|
|
|
@ -1020,8 +1020,8 @@ export class KBService implements IGBKBService {
|
|||
const instance = await core.loadInstanceByBotId(min.botId);
|
||||
GBLog.info(`[GBDeployer] Importing: ${localPath}`);
|
||||
|
||||
await deployer.undeployPackageFromLocalPath(instance, packageName);
|
||||
|
||||
await deployer.undeployPackageFromLocalPath(instance, localPath);
|
||||
|
||||
const p = await deployer.deployPackageToStorage(instance.instanceId, packageName);
|
||||
await this.importKbPackage(min, localPath, p, instance);
|
||||
GBDeployer.mountGBKBAssets(packageName, min.botId, localPath);
|
||||
|
|
Loading…
Add table
Reference in a new issue