aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/server/importer.ts
blob: 91adce0c7e1e1b4996486f8d6b95e4bb61d16705 (plain) (blame)
1
2
3
4
5
6
7
8
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);
    }
}