Skip to content

Commit

Permalink
New version available even just upgraded to the last one (Ombi-app#4719)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley King committed Oct 16, 2022
1 parent 5446406 commit 4150df4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Ombi.Schedule/Processor/ChangeLogProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,16 @@ public async Task<UpdateModel> Process()

private UpdateModel TransformUpdate(Release release)
{
Version updateVersion = Version.Parse(release.Version.TrimStart('v'));
Version currentVersion = Version.Parse(AssemblyHelper.GetRuntimeVersion());
var newUpdate = new UpdateModel
{
UpdateVersionString = release.Version,
UpdateVersion = int.Parse(release.Version.Substring(1, 5).Replace(".", "")),
UpdateDate = DateTime.Now,
ChangeLogs = release.Description,
Downloads = new List<Downloads>(),
UpdateAvailable = release.Version != "v" + AssemblyHelper.GetRuntimeVersion()
UpdateAvailable = updateVersion > currentVersion
};

foreach (var dl in release.Downloads)
Expand Down

0 comments on commit 4150df4

Please sign in to comment.