MMMMMMMMMMMMMMMM types

This commit is contained in:
Zoe
2023-01-10 21:21:09 -06:00
parent 880d1bf375
commit cd76dfc147
21 changed files with 147 additions and 82 deletions

View File

@@ -1,3 +1,4 @@
import { IUser } from '~/types'
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
@@ -16,9 +17,9 @@ export default defineEventHandler(async (event) => {
include: {
channels: true
}
})
}) as IUser
user.passwordhash = undefined;
servers.passwordhash = undefined;
return user
return servers
})