To find a transaction locally by merchant
export JWT_TOKEN=<token> export env=dev # or env=prod ./bin/find_transactions.js "merchant name"
To fix duplicate transactions
- Verify what the slug for the merchant should be at https://npm.runkit.com/%40tridnguyen%2Fslugify.
- Go to the Firestore console, find the merchant with duplicate values under
- Add the count of the old (duplicated) merchant to the correct one, then remove the old merchant.
- If the merchant pretty name needs to be updated on transactions, find the transaction (on Firestore console?) and update it accordingly.