Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

addTransaction is not defined #2

Closed
grncdr opened this issue Sep 12, 2019 · 1 comment
Closed

addTransaction is not defined #2

grncdr opened this issue Sep 12, 2019 · 1 comment

Comments

@grncdr
Copy link

grncdr commented Sep 12, 2019

I get the following error when requiring @actual-app/api:

ReferenceError: addTransaction is not defined
    at Object.<anonymous> (<snip>/node_modules/@actual-app/api/api.js:169:3)
@jlongster
Copy link
Collaborator

Sorry for not watching the issue - addTransaction shouldn't exist anymore. I can't remember if it did at one point and that's why this is confusing.

You should use addTransactions. The reason why the other doesn't exist is because it's best to import many at once and I want to encourage that.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants