Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@harshasomisetty and others