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

Specific Error if refund is created for a payment record that doesn't exist #377

Open
harshasomisetty opened this issue Jun 27, 2023 · 0 comments

Comments

@harshasomisetty
Copy link
Member

instead of returning a general {"error":"\nInvalid prisma.refundRecord.findMany()invocation:\n\n\nInconsistent query result: Field paymentRecord is required to return data, gotnull instead."} error, should return a "PaymentRecord does not exist"

This bug happened when opening a refund for a old payment on shopify dashboard, but a payment that we cleared from our db.

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

No branches or pull requests

1 participant