From 4d691dd5fa85d1265b55473dc503e09bc86e2fff Mon Sep 17 00:00:00 2001 From: Sergio <77530549+sergi0g@users.noreply.github.com> Date: Fri, 21 Feb 2025 17:09:00 +0200 Subject: [PATCH] Serialize current and local values to avoid having to recompute them when fetching API data. Also fixes the bug where the versions aren't displayed in the CLI output for remote servers --- src/structs/update.rs | 2 -- web/src/types.ts | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structs/update.rs b/src/structs/update.rs index 8f2f54b..cc70621 100644 --- a/src/structs/update.rs +++ b/src/structs/update.rs @@ -37,9 +37,7 @@ pub enum UpdateInfo { pub struct VersionUpdateInfo { pub version_update_type: String, pub new_tag: String, - #[serde(skip_serializing, skip_deserializing)] pub current_version: String, - #[serde(skip_serializing, skip_deserializing)] pub new_version: String, } diff --git a/web/src/types.ts b/web/src/types.ts index 393c502..e5390a1 100644 --- a/web/src/types.ts +++ b/web/src/types.ts @@ -33,6 +33,8 @@ interface VersionInfo { type: "version"; version_update_type: "major" | "minor" | "patch"; new_tag: string; + current_version: string; + new_version: string; } interface DigestInfo {