fix lint
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user