From 93e16d60c20c89398a98a9c687357488d6942a1a Mon Sep 17 00:00:00 2001 From: Toastie Date: Sun, 23 Jun 2024 20:25:41 +1200 Subject: [PATCH] Final fix for v5.0.8 update. --- CHANGELOG.md | 10 ---------- src/EllieBot/EllieBot.csproj | 2 +- .../Administration/Self/CheckForUpdatesService.cs | 6 +++--- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de7fa76..75f3a41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,6 @@ Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o -## [5.0.9] - 23.06.2024 - -### Changed - -- Updated the links so EllieBot can properly check for updates. - -### Fixed - -- Re-Added marmalades/marmalade.yml so the compiled build works. - ## [5.0.8] - 19.06.2024 ### Added diff --git a/src/EllieBot/EllieBot.csproj b/src/EllieBot/EllieBot.csproj index de07e40..2c605d4 100644 --- a/src/EllieBot/EllieBot.csproj +++ b/src/EllieBot/EllieBot.csproj @@ -4,7 +4,7 @@ enable true en - 5.0.9 + 5.0.8 $(MSBuildProjectDirectory) diff --git a/src/EllieBot/Modules/Administration/Self/CheckForUpdatesService.cs b/src/EllieBot/Modules/Administration/Self/CheckForUpdatesService.cs index 938262b..c037aeb 100644 --- a/src/EllieBot/Modules/Administration/Self/CheckForUpdatesService.cs +++ b/src/EllieBot/Modules/Administration/Self/CheckForUpdatesService.cs @@ -51,13 +51,13 @@ public sealed class CheckForUpdatesService : IEService, IReadyExecutor try { using var http = _httpFactory.CreateClient(); - var gitlabRelease = (await http.GetFromJsonAsync(RELEASES_URL)) + var toastielabRelease = (await http.GetFromJsonAsync(RELEASES_URL)) ?.FirstOrDefault(); - if (gitlabRelease?.TagName is null) + if (toastielabRelease?.TagName is null) continue; - var latest = gitlabRelease.TagName; + var latest = toastielabRelease.TagName; var latestVersion = Version.Parse(latest); var lastKnownVersion = GetLastKnownVersion();