fix(admin.gbapp): Fix in DONT_DOWNLOAD.
This commit is contained in:
parent
1e0a74b14a
commit
3ed733e4f8
3 changed files with 5 additions and 3 deletions
|
@ -283,7 +283,9 @@ export class AdminDialog extends IGBDialog {
|
||||||
} else {
|
} else {
|
||||||
cmd1 = `deployPackage ${packageName}`;
|
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}`;
|
const cmd2 = `undeployPackage ${packageName}`;
|
||||||
await GBAdminService.undeployPackageCommand(cmd2, min);
|
await GBAdminService.undeployPackageCommand(cmd2, min);
|
||||||
}
|
}
|
||||||
|
|
|
@ -193,7 +193,7 @@ export class GBAdminService implements IGBAdminService {
|
||||||
// of local resources is required.
|
// 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}`);
|
GBLog.warn(`${GBConfigService.get('CLOUD_USERNAME')} must be authorized on SharePoint related site to download to: ${localFolder}`);
|
||||||
await s.downloadFolder(
|
await s.downloadFolder(
|
||||||
localFolder,
|
localFolder,
|
||||||
|
|
|
@ -367,7 +367,7 @@ export class KBService implements IGBKBService {
|
||||||
instanceId: number,
|
instanceId: number,
|
||||||
packageId: number
|
packageId: number
|
||||||
): Promise<GuaribasQuestion[]> {
|
): Promise<GuaribasQuestion[]> {
|
||||||
GBLog.info(`Now reading file ${filePath}...`);
|
GBLog.info(`Now reading file ${filePath}...`);
|
||||||
const workbook = new Excel.Workbook();
|
const workbook = new Excel.Workbook();
|
||||||
const data = await workbook.xlsx.readFile(filePath);
|
const data = await workbook.xlsx.readFile(filePath);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue