Remove connection arguments for the Actual Budget API

This commit is contained in:
Campbell Alden 2026-03-20 16:50:57 +09:00
parent 1e750c6cdb
commit fc5d04d2bc

View file

@ -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);