SDA-4235 - Add missing check for betaAutoUpdateChannelEnabled (#1977)

This commit is contained in:
Kiran Niranjan 2023-10-11 13:17:54 +05:30 committed by GitHub
parent f4585e0173
commit 0be4d0e2fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -228,10 +228,12 @@ export class AutoUpdate {
};
private setAutoUpdateChannel = async (): Promise<void> => {
const { autoUpdateChannel, installVariant } = config.getConfigFields([
'autoUpdateChannel',
'installVariant',
]);
const { autoUpdateChannel, installVariant, betaAutoUpdateChannelEnabled } =
config.getConfigFields([
'autoUpdateChannel',
'installVariant',
'betaAutoUpdateChannelEnabled',
]);
const cc = config.getFilteredCloudConfigFields([
'betaAutoUpdateChannelEnabled',
@ -241,7 +243,9 @@ export class AutoUpdate {
? ChannelConfigLocation.ACP
: ChannelConfigLocation.LOCALFILE;
this.finalAutoUpdateChannel = autoUpdateChannel;
this.finalAutoUpdateChannel = betaAutoUpdateChannelEnabled
? 'beta'
: autoUpdateChannel;
this.installVariant = installVariant;
if (isWindowsOS) {
if (this.shouldRetrieveRegistry) {