# bunqueue v2.6.89

Fixes 1 bug. getPrioritized() returning empty array: end=-1 (default) was not normalized in the embedded path of getJobsAsync, causing maxPerSource=0 and zero results.

Canonical: https://bunqueue.dev/blog/bunqueue-v2-6-89/

---

<!-- Generated from changelog.md by docs/scripts/generate-release-posts.ts. Edit the changelog and regenerate. -->

Fixes 1 bug. getPrioritized() returning empty array: end=-1 (default) was not normalized in the embedded path of getJobsAsync, causing maxPerSource=0 and zero results.

![](https://github.com/egeominotti.png?size=64) [egeominotti](https://github.com/egeominotti)

#### To install bunqueue v2.6.89

```bash title="bun"
bun add bunqueue@2.6.89
```

```bash title="npm"
npm install bunqueue@2.6.89
```

#### To upgrade bunqueue

```bash
bun add bunqueue@latest
```

## Bugfixes

- **`getPrioritized()` returning empty array**: `end=-1` (default) was not normalized in the embedded path of `getJobsAsync`, causing `maxPerSource=0` and zero results. Now handles `end=-1` consistently with the TCP path.

## Thanks to 1 contributor!

- [@egeominotti](https://github.com/egeominotti)

---

[← bunqueue v2.6.88](https://bunqueue.dev/blog/bunqueue-v2-6-88/) · [Release on GitHub](https://github.com/egeominotti/bunqueue/releases/tag/v2.6.89) · [Commits since v2.6.73](https://github.com/egeominotti/bunqueue/compare/v2.6.73...v2.6.89) · [Full changelog](https://bunqueue.dev/changelog/) · [All posts](https://bunqueue.dev/blog/)
