add: themes for wishlists and dashboards

This commit is contained in:
rasmusq
2025-11-28 12:45:20 +01:00
parent 7c6ff9458f
commit eb7ccdf7a2
7 changed files with 275 additions and 33 deletions

View File

@@ -17,6 +17,11 @@ export const load: PageServerLoad = async (event) => {
};
}
// Fetch user with theme
const user = await db.query.users.findFirst({
where: eq(users.id, session.user.id)
});
const userWishlists = await db.query.wishlists.findMany({
where: eq(wishlists.userId, session.user.id),
with: {
@@ -57,7 +62,7 @@ export const load: PageServerLoad = async (event) => {
}));
return {
user: session.user,
user: user,
wishlists: userWishlists,
savedWishlists: savedWithAccess,
isAuthenticated: true