add: Subscriptions receival

This commit is contained in:
Alex
2024-09-29 21:26:48 +02:00
parent 8e9eb22cb0
commit f7c1ad2b8e
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
/** @type {import('./$types').LayoutLoad} */
export async function load({ fetch, url, data }) {
const { user } = data;
return { fetch, url: url.pathname, user };
const { user, subscriptions } = data;
return { fetch, url: url.pathname, user, subscriptions };
}

View File

@@ -2,5 +2,6 @@
export async function load({ locals }) {
return {
user: locals.user,
subscriptions: locals.subscriptions,
};
}