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) {
|
public async deployPackage(min: GBMinInstance, localPath: string) {
|
||||||
// TODO: @alanperdomo: Adjust interface mismatch.
|
// TODO: Adjust interface mismatch.
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Deploys a folder into the bot storage.
|
* Deploys a folder into the bot storage.
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ export class KBService implements IGBKBService {
|
||||||
const instance = await core.loadInstanceByBotId(min.botId);
|
const instance = await core.loadInstanceByBotId(min.botId);
|
||||||
GBLog.info(`[GBDeployer] Importing: ${localPath}`);
|
GBLog.info(`[GBDeployer] Importing: ${localPath}`);
|
||||||
|
|
||||||
await deployer.undeployPackageFromLocalPath(instance, packageName);
|
await deployer.undeployPackageFromLocalPath(instance, localPath);
|
||||||
|
|
||||||
const p = await deployer.deployPackageToStorage(instance.instanceId, packageName);
|
const p = await deployer.deployPackageToStorage(instance.instanceId, packageName);
|
||||||
await this.importKbPackage(min, localPath, p, instance);
|
await this.importKbPackage(min, localPath, p, instance);
|
||||||
|
|
Loading…
Add table
Reference in a new issue