opencollective / opencollective-api

Open Collective's API. A GraphQL API powered by Sequelize and PostgreSQL.
https://api.opencollective.com
MIT License
418 stars 266 forks source link

Handle recorded transactions from recurring orders on 20240926 #10366

Closed hdiniz closed 6 days ago

hdiniz commented 1 week ago

Follow up on https://github.com/opencollective/opencollective-api/pull/10336

Handles the case of created recorded transactions from recurring contributions, the initial query used did not catch these transactions as the duplicated payment intent was not the last one on the original order.

This cleans the record of these affected orders and transactions.