less database requests

This commit is contained in:
2023-07-20 14:48:50 +02:00
parent 59ab194b08
commit af2b513677
5 changed files with 43 additions and 31 deletions

View File

@@ -1,8 +1,5 @@
import { authenticateUser } from '$lib/js/authenticate';;
import { get_username } from '$lib/js/get_username';;
export const load = (async ({cookies}) => {
const user = await authenticateUser(cookies)
return {
user
}
return { user: await get_username(cookies) }
});