fix(admin.gbapp): Removal of download during deployment of .gbot packages.
This commit is contained in:
parent
b71121932d
commit
f4d5cf92d2
1 changed files with 14 additions and 8 deletions
|
@ -172,6 +172,11 @@ export class GBAdminService implements IGBAdminService {
|
||||||
const s = new GBSharePointService();
|
const s = new GBSharePointService();
|
||||||
|
|
||||||
const localFolder = Path.join('work', `${min.instance.botId}.gbai`, Path.basename(folderName));
|
const localFolder = Path.join('work', `${min.instance.botId}.gbai`, Path.basename(folderName));
|
||||||
|
|
||||||
|
// .gbot packages are handled using storage API, so no download
|
||||||
|
// of local resources is required.
|
||||||
|
|
||||||
|
if (!localFolder.endsWith('.gbot')) {
|
||||||
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site`);
|
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site`);
|
||||||
await s.downloadFolder(
|
await s.downloadFolder(
|
||||||
localFolder,
|
localFolder,
|
||||||
|
@ -180,6 +185,7 @@ export class GBAdminService implements IGBAdminService {
|
||||||
GBConfigService.get('CLOUD_USERNAME'),
|
GBConfigService.get('CLOUD_USERNAME'),
|
||||||
GBConfigService.get('CLOUD_PASSWORD')
|
GBConfigService.get('CLOUD_PASSWORD')
|
||||||
);
|
);
|
||||||
|
}
|
||||||
await deployer.deployPackage(min, localFolder);
|
await deployer.deployPackage(min, localFolder);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue