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

Transactions by account includes unrelated Maybuy transactions #148

Open
jacobjmarks opened this issue Aug 27, 2024 · 0 comments
Open

Transactions by account includes unrelated Maybuy transactions #148

jacobjmarks opened this issue Aug 27, 2024 · 0 comments

Comments

@jacobjmarks
Copy link

Sequence of events:

  1. A new 2Up Maybuy was created
  2. The Maybuy was contributed to; completed; and the funds removed
    • Total transactions made: 5 (4 contributions and 1 transfer out)
  3. The Maybuy was deleted
  4. A new 2Up Saver was created
  5. A single transaction was made on the new Saver

Now, when viewing this Saver on the mobile app, all is as expected, i.e. a single transaction can be seen.

However, when fetching transactions for this Saver via the /accounts/:id/transactions endpoint, a total of 6 transactions can be seen. These include the single transaction that I made on the Saver (all I am expected to see), as well as the 5 transactions that were made on the since-deleted Maybuy (and made before the Saver even existed).

In the response, all of these transactions share the same relationships.account.data.id value, that being the data.id of the new Saver account.

Edit: I have also since discovered that the data.attributes.createdAt value of the new 2Up Saver is dated before I created it.

To summarize:

  • 01/05: The reported date that the 2Up Saver was created
    • I suspected that this is actually the date that the Maybuy was created
  • 05/06 - 17/06: Dates of Maybuy transactions
  • 26/08: The actual date that the 2Up Saver was created
  • 26/08: 2Up Saver transaction was made
Transaction/s Visible on 2Up Saver account page Visible on 2Up Saver transactions response
2Up Saver Yes (Expected: Yes) Yes (Expected: Yes)
Maybuy No (Expected: No) Yes (Expected: No)
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