diff options
| author | ivar <i@oiee.no> | 2025-12-15 00:40:21 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-15 00:40:21 +0100 |
| commit | 2b5e4c4aa372632b87a404027cf53d5a7bfc3808 (patch) | |
| tree | 4782fec17e6c3745fb43e209dfe80e33340d37c0 /app/src/routes/actual.remote.ts | |
| parent | 008862f8a2431c8f755a38a0ef242b8faf125057 (diff) | |
| download | sparebank1-actualbudget-2b5e4c4aa372632b87a404027cf53d5a7bfc3808.tar.xz sparebank1-actualbudget-2b5e4c4aa372632b87a404027cf53d5a7bfc3808.zip | |
Progress
Diffstat (limited to 'app/src/routes/actual.remote.ts')
| -rw-r--r-- | app/src/routes/actual.remote.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/routes/actual.remote.ts b/app/src/routes/actual.remote.ts index 4bd70b4..9560d4d 100644 --- a/app/src/routes/actual.remote.ts +++ b/app/src/routes/actual.remote.ts @@ -5,7 +5,7 @@ import { existsSync, mkdirSync } from "node:fs"; import path from "node:path"; async function init_actual() { - const dataDir = path.resolve(__dirname, "actualDataDir"); + const dataDir = path.resolve(import.meta.dirname, "actualDataDir"); if (!existsSync(dataDir)) mkdirSync(dataDir); @@ -19,4 +19,4 @@ async function init_actual() { export const get_actual_meta = query(async () => { await init_actual() return await actual.getBudgets() -})
\ No newline at end of file +}) |
