Enhance account management: add functionality to hide accounts and retrieve hidden accounts; update API to handle account visibility settings.
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user