Enhance account management: add functionality to hide accounts and retrieve hidden accounts; update API to handle account visibility settings.

This commit is contained in:
2025-07-08 21:00:49 -04:00
parent 61d2a258fc
commit aaa675b6ee
5 changed files with 179 additions and 73 deletions

View File

@ -4,10 +4,11 @@ import { getTransactions } from '$lib/db';
/** @type {import('./$types').PageServerLoad} */
export async function load({ params }) {
const transactions = await getTransactions(params.slug);
const slug = params.slug;
if (transactions) {
return {transactions};
return {transactions, slug};
}
error(404, 'Not found');
}
}