Skip to content

Commit

Permalink
Allow major version update
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihajlo-Pavlovic committed Dec 25, 2024
1 parent 639d6c4 commit 1e32c00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "origintrail_node",
"version": "6.5.1+hotfix.2",
"version": "6.5.1+hotfix.3",
"description": "OTNode V6",
"main": "index.js",
"type": "module",
Expand Down
6 changes: 0 additions & 6 deletions src/commands/common/otnode-update-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ class OtnodeUpdateCommand extends Command {
const { upToDate, currentVersion, remoteVersion } =
await this.autoUpdaterModuleManager.compareVersions();
if (!upToDate) {
if (semver.major(currentVersion) < semver.major(remoteVersion)) {
this.logger.info(
`New major update available. Please run update to version ${remoteVersion} manually.`,
);
return Command.repeat();
}
if (semver.lt(semver.valid(remoteVersion), semver.valid(currentVersion))) {
this.logger.info(
'Remote version less than current version, update will be skipped',
Expand Down

0 comments on commit 1e32c00

Please sign in to comment.