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