You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2023. It is now read-only.
when i run update transactions i get the following error:
Error: [API Error] Tried to edit unknown transaction id: undefined
at Promise.catch.err (/Users/mohammad/node_modules/@actual-app/api/connection.js:26:13)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:160:7)
the code im using is as follows:
let api = require('@actual-app/api');
async function run() {
let budget = await api.getAccounts();
let f= await api.addTransactions('REDACTED',[{date:'2020-01-02'}])
let e= await api.getTransactions('REDACTED','2020-01-01','2022-01-20');
let g= await api.updateTransaction(e[e.length-1]["id"],{})
}
api.runWithBudget('My-Finances-b1bae9d', run);
other methods such as api.deleteTransaction() work fine so i know the id i am using is correct.
The text was updated successfully, but these errors were encountered:
when i run update transactions i get the following error:
the code im using is as follows:
other methods such as
api.deleteTransaction()
work fine so i know the id i am using is correct.The text was updated successfully, but these errors were encountered: