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

Retry invoice sometimes not found #1381

Closed
huumn opened this issue Sep 8, 2024 · 0 comments · Fixed by #1434
Closed

Retry invoice sometimes not found #1381

huumn opened this issue Sep 8, 2024 · 0 comments · Fixed by #1434
Assignees

Comments

@huumn
Copy link
Member

huumn commented Sep 8, 2024

https://stacker.news/items/676813/r/k00b?commentId=677395

This happens here:

const { msatsRequested, actionId } = await models.invoice.findUnique({ where: { id: invoiceId, actionState: 'FAILED' } })

I suspect the invoice is not in a FAILED state yet for some reason or the client sends the wrong invoiceId.

Either way, we probably shouldn't destructure here so we can check the return value and send a back a better error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant