Skip to content

tnguyen14/ledge

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

ledge

code style: prettier

Local development

npm start

Transaction lookup

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 merchants_counts.
  • 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.