Skip to content

Commit

Permalink
fix: 修改默认升级版本 (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu authored Mar 24, 2023
1 parent d70c22d commit 30cb471
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/app/service/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ func (u *UpgradeService) SearchUpgrade() (*dto.UpgradeInfo, error) {
upgrade.NewVersion = newerVersion
}
}
notes, err := u.loadReleaseNotes(fmt.Sprintf("%s/%s/%s/release/1panel-%s-release-notes", global.CONF.System.RepoUrl, global.CONF.System.Mode, upgrade.LatestVersion, upgrade.LatestVersion))
itemVersion := upgrade.LatestVersion
if upgrade.NewVersion != "" {
itemVersion = upgrade.NewVersion
}
notes, err := u.loadReleaseNotes(fmt.Sprintf("%s/%s/%s/release/1panel-%s-release-notes", global.CONF.System.RepoUrl, global.CONF.System.Mode, itemVersion, itemVersion))

if err != nil {
return nil, fmt.Errorf("load relase-notes of version %s failed, err: %v", latestVersion, err)
}
Expand Down

0 comments on commit 30cb471

Please sign in to comment.