Remove connection arguments for the Actual Budget API
This commit is contained in:
parent
1e750c6cdb
commit
fc5d04d2bc
1 changed files with 1 additions and 4 deletions
|
|
@ -1,8 +1,7 @@
|
||||||
// Expects a JSON config file to be passed in the env variable CONFIG_FILE.
|
// Expects a JSON config file to be passed in the env variable CONFIG_FILE.
|
||||||
// The file should contain:
|
// The file should contain:
|
||||||
// "dataDir": path
|
// "dataDir": path
|
||||||
// "serverURL": "http://localhost:5006"
|
// "accountId": UUID for the account to add transactions to.
|
||||||
// "password": "hunter1"
|
|
||||||
|
|
||||||
import express from 'express'
|
import express from 'express'
|
||||||
import AsyncLock from 'async-lock';
|
import AsyncLock from 'async-lock';
|
||||||
|
|
@ -51,8 +50,6 @@ async function init() {
|
||||||
try {
|
try {
|
||||||
await api.init({
|
await api.init({
|
||||||
dataDir: config.dataDir,
|
dataDir: config.dataDir,
|
||||||
serverURL: config.serverURL,
|
|
||||||
password: config.password,
|
|
||||||
});
|
});
|
||||||
const transaction = makeTransaction(parse(req.body), config.accountId);
|
const transaction = makeTransaction(parse(req.body), config.accountId);
|
||||||
console.log(transaction);
|
console.log(transaction);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue