SDA-4489 - Just use version (#2155)

This commit is contained in:
Kiran Niranjan 2024-05-29 12:08:12 +05:30 committed by GitHub
parent 64ffb0afec
commit 7f2fe2c8c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@ import * as fs from 'fs';
import { homedir as getHomedir } from 'os';
import * as path from 'path';
import { buildNumber, version } from '../../package.json';
import { version } from '../../package.json';
import { isMac, isWindowsOS } from '../common/env';
import { logger } from '../common/logger';
import { isUrl } from '../common/utils';
@ -149,8 +149,12 @@ export class AutoUpdate {
return;
}
const isOnLatestVersion =
latestVersionFromServer === `${version}-${buildNumber}`;
const isOnLatestVersion = latestVersionFromServer === version;
logger.info(
'auto-update-handler: latest version from server',
latestVersionFromServer,
);
logger.info('auto-update-handler: current version', version);
if (isOnLatestVersion) {
logger.info(
'auto-update-handler: already running the latest version skipping force update',