[4114] refactoring

This commit is contained in:
mpetrov 2024-09-09 19:10:49 +03:00
parent 410c974841
commit 4323c6abd2

View File

@ -28,7 +28,7 @@ export abstract class GatewayConnectorVersionProcessor<BasicConfig> {
}
private isVersionUpgradeNeeded(): boolean {
return (!this.configVersion || this.configVersion < this.gatewayVersion) && this.gatewayVersionStr === GatewayVersion.Current;
return this.gatewayVersionStr === GatewayVersion.Current && (!this.configVersion || this.configVersion < this.gatewayVersion);
}
private parseVersion(version: string): number {