plaid / pattern

An example end-to-end Plaid integration to create items and fetch transaction data
MIT License
434 stars 216 forks source link

Fix deleteItem query #274

Closed EllisMin closed 1 year ago

EllisMin commented 1 year ago

Description

Deleting item was not working as deleteItem() query was comparing item's id with plaid item id. i.e. itemId passed into deleteItem() was not a plaid item id. This reulsted in a falsely successful response without actually deleting the item, its associated accounts, and transactions.

How to test

  1. Go to users page
  2. Link an account (create an item)
  3. Remove an item (bank/institution)
  4. See it's removed