diff options
| author | ivar <i@oiee.no> | 2025-12-11 00:44:59 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-11 00:44:59 +0100 |
| commit | 008862f8a2431c8f755a38a0ef242b8faf125057 (patch) | |
| tree | 64087987855e95940110b3c65fc877921574dc8f /app/src/routes/actual.remote.ts | |
| parent | 3dfc7b11ca5b243c63c90bb3c2fafeb8e14dc7f0 (diff) | |
| download | sparebank1-actualbudget-008862f8a2431c8f755a38a0ef242b8faf125057.tar.xz sparebank1-actualbudget-008862f8a2431c8f755a38a0ef242b8faf125057.zip | |
WIP! Restructure
Diffstat (limited to 'app/src/routes/actual.remote.ts')
| -rw-r--r-- | app/src/routes/actual.remote.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/src/routes/actual.remote.ts b/app/src/routes/actual.remote.ts index 535e387..4bd70b4 100644 --- a/app/src/routes/actual.remote.ts +++ b/app/src/routes/actual.remote.ts @@ -4,7 +4,7 @@ import * as actual from "@actual-app/api" import { existsSync, mkdirSync } from "node:fs"; import path from "node:path"; -async function initActual() { +async function init_actual() { const dataDir = path.resolve(__dirname, "actualDataDir"); if (!existsSync(dataDir)) mkdirSync(dataDir); @@ -16,8 +16,7 @@ async function initActual() { }) } -export const getActualMeta = query(async () => { - await initActual() - const accounts = await actual.getAccounts() - return +export const get_actual_meta = query(async () => { + await init_actual() + return await actual.getBudgets() })
\ No newline at end of file |
