remove unnecessary comment
This commit is contained in:
parent
447974a74a
commit
3e199cf8d4
1 changed files with 1 additions and 2 deletions
|
@ -56,7 +56,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||||
|
|
||||||
export default withMethods(["GET", "PUT", "DELETE"], handler)
|
export default withMethods(["GET", "PUT", "DELETE"], handler)
|
||||||
|
|
||||||
// valid jsdoc
|
|
||||||
/**
|
/**
|
||||||
* @description Deletes a user and all of their posts, files, and accounts
|
* @description Deletes a user and all of their posts, files, and accounts
|
||||||
* @warning This function does not perform any authorization checks
|
* @warning This function does not perform any authorization checks
|
||||||
|
@ -69,7 +68,7 @@ export async function deleteUser(id: string | undefined) {
|
||||||
authorId: id
|
authorId: id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
await prisma.user.delete({
|
await prisma.user.delete({
|
||||||
where: {
|
where: {
|
||||||
id
|
id
|
||||||
|
|
Loading…
Reference in a new issue