blob: 5d3e857d3fa6c980bf1d7dd351bb4bd48a0a39cc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import type { PageServerLoad } from './$types';
import { get_accounts, get_budgets } from '$lib/server/actual';
import sb1 from "$lib/server/sb1"
export const load = (async () => {
return {
actual: {
budgets: await get_budgets(),
accounts: await get_accounts(),
},
sb1: {
accounts: (await sb1.data.get_accounts())?.accounts
}
};
}) satisfies PageServerLoad;
|