mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-26 17:40:25 +01:00
Working
This commit is contained in:
@@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {
|
||||
const user = await getUserSession(event)
|
||||
const body = await useValidatedBody(event, CreateCategorySchema)
|
||||
await useDrizzle().insert(tables.categories).values({
|
||||
userId: user.id,
|
||||
userId: user.user.id,
|
||||
...body,
|
||||
})
|
||||
return { statusCode: 200 }
|
||||
|
||||
Reference in New Issue
Block a user