Fix SpoolBuddy update check comparing against GitHub releases instead of backend version

The SpoolBuddy daemon update endpoint fetched GitHub releases and compared
  them against device.firmware_version, which always showed "up to date"
  because the comparison source was wrong. Now compares directly against
  APP_VERSION from the running backend, so a daemon at 0.2.3b1 correctly
  sees 0.2.3 as an available update.
This commit is contained in:
maziggy
2026-03-23 12:05:20 +01:00
parent 8e5625d1d9
commit 511ece791a
8 changed files with 16 additions and 8789 deletions
+2 -3
View File
@@ -4992,7 +4992,6 @@ export interface DaemonUpdateCheck {
current_version: string;
latest_version: string | null;
update_available: boolean;
release_url: string | null;
}
// SpoolBuddy API
@@ -5027,8 +5026,8 @@ export const spoolbuddyApi = {
body: JSON.stringify({ brightness, blank_timeout: blankTimeout }),
}),
checkDaemonUpdate: (deviceId: string, includeBeta?: boolean) =>
request<DaemonUpdateCheck>(`/spoolbuddy/devices/${deviceId}/update-check?include_beta=${includeBeta ?? false}`),
checkDaemonUpdate: (deviceId: string) =>
request<DaemonUpdateCheck>(`/spoolbuddy/devices/${deviceId}/update-check`),
triggerUpdate: (deviceId: string) =>
request<{ status: string; message: string }>(`/spoolbuddy/devices/${deviceId}/update`, {