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(cloudflare-d1): correctly return results array #156

Merged
merged 1 commit into from
Feb 20, 2025
Merged

fix(cloudflare-d1): correctly return results array #156

merged 1 commit into from
Feb 20, 2025

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Feb 20, 2025

cloudflare d1 returns an object { results } with preparedStatement.all() . This issue was not caught by tests as we didn't had them nor by types.

I have added tests (using wrangler proxy) + types + fix.

@pi0 pi0 merged commit 83c26b7 into main Feb 20, 2025
3 checks passed
@pi0 pi0 deleted the fix/cf-d1 branch February 20, 2025 12:47
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.

1 participant