This commit is contained in:
Bernd Storath
2026-06-12 15:27:38 +02:00
parent 8add67a4cc
commit bb5aff1919
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export async function getCurrentUser(event: H3Event) {
const authorization = getHeader(event, 'Authorization'); const authorization = getHeader(event, 'Authorization');
let user: UserType | undefined = undefined; let user: UserType | undefined;
if (session.data.userId) { if (session.data.userId) {
// Handle if authenticating using Session // Handle if authenticating using Session
user = await Database.users.get(session.data.userId); user = await Database.users.get(session.data.userId);
+1
View File
@@ -247,6 +247,7 @@ export function validateZod<T>(
}) })
.join('; '); .join('; ');
} }
// eslint-disable-next-line preserve-caught-error
throw new Error(message); throw new Error(message);
} }
}; };