Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(delegationStorage): find delegations call was not returning results #159

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

fforbeck
Copy link
Member

@fforbeck fforbeck commented Feb 13, 2025

Context

Fixed async operation bug in delegation retrieval logic

Changes

  • Fixed critical bug where delegations weren't being properly awaited
  • Changed forEach loop to Promise.all(result.keys.map)
  • Added the await to ensure all delegations are fully loaded before returning results

Resolves #156

@fforbeck fforbeck self-assigned this Feb 13, 2025
@fforbeck fforbeck requested a review from alanshaw February 13, 2025 13:36
@fforbeck fforbeck merged commit 9cd6e57 into main Feb 13, 2025
1 check passed
@fforbeck fforbeck deleted the fix/find-delegations branch February 13, 2025 14:16
hannahhoward pushed a commit that referenced this pull request Feb 13, 2025
🤖 I have created a release *beep* *boop*
---


##
[2.28.0](v2.27.0...v2.28.0)
(2025-02-13)


### Features

* **freeway:** put prod indexer usage to 50%
([#158](#158))
([6bd8e90](6bd8e90))


### Bug Fixes

* **delegationStorage:** find delegations call was not returning results
([#159](#159))
([9cd6e57](9cd6e57))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the find delegations issue and add more tests
2 participants