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