mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
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:
@@ -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`, {
|
||||
|
||||
Reference in New Issue
Block a user