aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/server/importer.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/lib/server/importer.ts')
-rw-r--r--app/src/lib/server/importer.ts9
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