ITADN

bug: Negative value in API: updates_available

#829Opencansi22 创建于 2026-03-01
bug
C
cansi22commented
**Description:** The /api/v1/counts endpoint returns a negative integer for the updates_available field, even when all services are fully updated. **Steps to Reproduce:** 1. Ensure all services are in their latest version. 2. Perform a GET request to /api/v1/counts. 3. Check the value of the updates_available variable. **Expected Behavior:** The value should be 0 (or a positive integer) when no updates are pending. **Note:** the error appears to be cumulative. The updates_available value decreases and becomes negative every time an update is skipped instead of installed. ``` { "service_count": 18, "service_count_active": 18, "service_count_inactive": 0, "updates_available": -2, "updates_skipped": 0 } ```
2 条评论