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
@@ -61,7 +61,7 @@ export function SpoolBuddyLayout() {
// Auto-check for SpoolBuddy daemon updates
const { data: updateCheck } = useQuery({
queryKey: ['spoolbuddy-update-check', device?.device_id],
queryFn: () => device ? spoolbuddyApi.checkDaemonUpdate(device.device_id, true) : Promise.resolve(null),
queryFn: () => device ? spoolbuddyApi.checkDaemonUpdate(device.device_id) : Promise.resolve(null),
enabled: !!device,
refetchInterval: 5 * 60 * 1000, // re-check every 5 minutes
staleTime: 4 * 60 * 1000,