add: Subscriptions receival
This commit is contained in:
@@ -27,7 +27,7 @@ export async function handle({ event, resolve }) {
|
||||
}
|
||||
// find the user based on the jwt
|
||||
|
||||
const userData = await response.json();
|
||||
const data = await response.json();
|
||||
|
||||
// Check if the server sent a new token
|
||||
const newToken = response.headers.get("Set-Cookie");
|
||||
@@ -44,7 +44,8 @@ export async function handle({ event, resolve }) {
|
||||
}
|
||||
}
|
||||
|
||||
event.locals.user = userData;
|
||||
event.locals.subscriptions = data.subscriptions;
|
||||
event.locals.user = data.user;
|
||||
if (event.locals.user.date_of_birth) {
|
||||
event.locals.user.date_of_birth =
|
||||
event.locals.user.date_of_birth.split("T")[0];
|
||||
|
||||
Reference in New Issue
Block a user