mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-14 12:14:33 +01:00
Working
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export default defineEventHandler(async (event) => {
|
||||
const user = await requireUserSession(event)
|
||||
return useDrizzle().query.users.findFirst({
|
||||
where: eq(tables.users.id, user.id),
|
||||
where: eq(tables.users.id, user.user.id),
|
||||
with: {
|
||||
categories: {
|
||||
with: {
|
||||
|
||||
Reference in New Issue
Block a user