Skip to content

Comments

Fix the app, improve logging, and update dependencies#2

Open
parkerbxyz wants to merge 9 commits intoGraysonCAdams:mainfrom
parkerbxyz:main
Open

Fix the app, improve logging, and update dependencies#2
parkerbxyz wants to merge 9 commits intoGraysonCAdams:mainfrom
parkerbxyz:main

Conversation

@parkerbxyz
Copy link

This pull request gets this app back in working order.

  • index.js and mail.js: Organized imports. [1] [2]
  • mail.js: Updated the email parsing logic to correctly identify and extract the order total from emails.
  • mail.js: Reduced console output noise during historical email searches using process.stdout.write. This output now stays on a single line instead of one line per email searched. [1] [2]
  • ynab.js: Updated the fetchTransactions method to only fetch unapproved transactions, added error handling, and improved logging for transaction fetching and caching. [1] [2] [3] [4]
  • package.json: Updated dependencies for cheerio, dotenv, and ynab to their latest versions.

This fixes a timeout error that can occur when importing all transactions in a budget before filtering them.
Order confirmation emails use a new format that requires a change to how order amounts are parsed from them.
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

Successfully merging this pull request may close these issues.

1 participant