add: themes for wishlists and dashboards
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user