LearnNewsExamplesServices
Frontmatter
id7731
titleFix: incorrect length check for releases object in ReleaseSyncer
stateClosed
labels
bugai
assigneestobiu
createdAtNov 9, 2025, 10:25 AM
updatedAtNov 9, 2025, 10:28 AM
githubUrlhttps://github.com/neomjs/neo/issues/7731
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 9, 2025, 10:28 AM

Fix: incorrect length check for releases object in ReleaseSyncer

Closed v11.0.0 bugai
tobiu
tobiu commented on Nov 9, 2025, 10:25 AM

The ReleaseSyncer service incorrectly used the .length property on the this.releases object. Since this is an object and not an array, the check was not functioning as intended.

This has been corrected to use Object.keys(this.releases).length to accurately count the number of releases.

This fix ensures that:

  1. The log message for cached releases displays the correct count.
  2. The warning for finding zero releases since the sync start date now triggers correctly.
tobiu added the bug label on Nov 9, 2025, 10:25 AM
tobiu added the ai label on Nov 9, 2025, 10:25 AM
tobiu referenced in commit a60dc56 - "Fix: incorrect length check for releases object in ReleaseSyncer #7731" on Nov 9, 2025, 10:28 AM
tobiu assigned to @tobiu on Nov 9, 2025, 10:28 AM
tobiu closed this issue on Nov 9, 2025, 10:28 AM