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(wallet): Prevent from having duplicate Invoices::PrepaidCreditJob #2243

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

rsempe
Copy link
Collaborator

@rsempe rsempe commented Jul 3, 2024

Description

We've recently seen an issue where we receive the succeeded webhook from Stripe several times at the same moment (some milliseconds interval) on some wallet transactions.

The goal of this PR is to add a unique lock on the Invoices::PrepaidCreditJob job to not impact the balance twice.

@rsempe rsempe added 🐞 Bug Something isn't working Wallet labels Jul 3, 2024
Copy link
Contributor

@julienbourdeau julienbourdeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hours of debugging, fixed in 1 line 😄 🚀

@rsempe rsempe merged commit 53284fe into main Jul 3, 2024
6 checks passed
@rsempe rsempe deleted the fix-unique-prepaid-credit-job branch July 3, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working Wallet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants