fix(admin.gbapp): Fix in DONT_DOWNLOAD.

This commit is contained in:
Rodrigo Rodriguez 2021-02-05 09:55:06 -03:00
parent 1e0a74b14a
commit 3ed733e4f8
3 changed files with 5 additions and 3 deletions

View file

@ -283,7 +283,9 @@ export class AdminDialog extends IGBDialog {
} else {
cmd1 = `deployPackage ${packageName}`;
}
if ((await (deployer as any).getStoragePackageByName(min.instance.instanceId, packageName)) !== null) {
if ((await (deployer as any).getStoragePackageByName(min.instance.instanceId, packageName)) !== null &&
!process.env.DONT_DOWNLOAD
) {
const cmd2 = `undeployPackage ${packageName}`;
await GBAdminService.undeployPackageCommand(cmd2, min);
}

View file

@ -193,7 +193,7 @@ export class GBAdminService implements IGBAdminService {
// of local resources is required.
if (!localFolder.endsWith('.gbot')&& !process.env.DONT_DOWNLOAD) {
if (!localFolder.endsWith('.gbot') && !process.env.DONT_DOWNLOAD) {
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site to download to: ${localFolder}`);
await s.downloadFolder(
localFolder,

View file

@ -367,7 +367,7 @@ export class KBService implements IGBKBService {
instanceId: number,
packageId: number
): Promise<GuaribasQuestion[]> {
GBLog.info(`Now reading file ${filePath}...`);
GBLog.info(`Now reading file ${filePath}...`);
const workbook = new Excel.Workbook();
const data = await workbook.xlsx.readFile(filePath);