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

[BUG]: Search returns data that doesn't match the query #663

Open
yuliankarapetkov opened this issue Oct 9, 2024 · 0 comments
Open

[BUG]: Search returns data that doesn't match the query #663

yuliankarapetkov opened this issue Oct 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@yuliankarapetkov
Copy link

What happened?

I am aware that data is searchable with an expected delay of up to a minute and that you shouldn't use search for read-after-write flows as per the docs. However, I'm experiencing something that, IMO, should not behave this way even with this limitation in mind.

To simplify, after a charge is made, I'm searching for charges, filtering by customer and refunded:

const activeCharges = await stripe.charges.search({
      query: `customer:'${customerId}' AND -refunded:'true'`,
});

However, I'm getting a list of charges, some of which have refunded: true. Even if the data is not updated at this point in time, I think charges that don't match the query at this point in time shouldn't be returned at all.

Environment

No response

Reproduction

No response

@yuliankarapetkov yuliankarapetkov added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant