Skip to content

Commit

Permalink
fix(admin.gbapp): Fix in DONT_DOWNLOAD.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Feb 5, 2021
1 parent 1e0a74b commit 3ed733e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/admin.gbapp/dialogs/AdminDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/admin.gbapp/services/GBAdminService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/kb.gbapp/services/KBService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3ed733e

Please sign in to comment.