diff options
| author | ivar <i@oiee.no> | 2025-12-26 13:18:15 +0100 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2025-12-26 13:18:15 +0100 |
| commit | fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963 (patch) | |
| tree | 032fcc7ee0b72899405a5046e7761d71fb029c9c /app/src/lib/server/importer.ts | |
| parent | 874e1572298531dde9bc1d3ccdb704af0a045605 (diff) | |
| download | sparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.tar.xz sparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.zip | |
WIP form
Diffstat (limited to 'app/src/lib/server/importer.ts')
| -rw-r--r-- | app/src/lib/server/importer.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/src/lib/server/importer.ts b/app/src/lib/server/importer.ts new file mode 100644 index 0000000..91adce0 --- /dev/null +++ b/app/src/lib/server/importer.ts @@ -0,0 +1,9 @@ +import type { Temporal } from "temporal-polyfill"; +import sb1 from "./sb1"; + +async function importSince(account: string, date: Temporal.Instant) { + const accounts = await sb1.data.get_accounts() + for (const account of accounts?.accounts ?? []) { + const transactions = await sb1.data.get_transactions(account.key); + } +}
\ No newline at end of file |
