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,14 +172,20 @@ export class GBAdminService implements IGBAdminService {
|
|||
const s = new GBSharePointService();
|
||||
|
||||
const localFolder = Path.join('work', `${min.instance.botId}.gbai`, Path.basename(folderName));
|
||||
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site`);
|
||||
await s.downloadFolder(
|
||||
localFolder,
|
||||
siteName,
|
||||
folderName,
|
||||
GBConfigService.get('CLOUD_USERNAME'),
|
||||
GBConfigService.get('CLOUD_PASSWORD')
|
||||
);
|
||||
|
||||
// .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`);
|
||||
await s.downloadFolder(
|
||||
localFolder,
|
||||
siteName,
|
||||
folderName,
|
||||
GBConfigService.get('CLOUD_USERNAME'),
|
||||
GBConfigService.get('CLOUD_PASSWORD')
|
||||
);
|
||||
}
|
||||
await deployer.deployPackage(min, localFolder);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue