fix(kb.gbapp): Fix importing packages.

This commit is contained in:
Rodrigo Rodriguez 2023-09-13 19:42:45 -03:00
parent 0fc3d714c0
commit 917c8ac58e
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -1020,8 +1020,8 @@ 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);
GBDeployer.mountGBKBAssets(packageName, min.botId, localPath); GBDeployer.mountGBKBAssets(packageName, min.botId, localPath);