From 008862f8a2431c8f755a38a0ef242b8faf125057 Mon Sep 17 00:00:00 2001 From: ivar Date: Thu, 11 Dec 2025 00:44:59 +0100 Subject: WIP! Restructure --- app/src/routes/actual.remote.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/src/routes/actual.remote.ts') 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 -- cgit v1.3