From 3e199cf8d4ad325d99c9141116e90624e4c766c2 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 17 Dec 2022 23:11:45 -0800 Subject: [PATCH] remove unnecessary comment --- src/pages/api/user/[id].ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/api/user/[id].ts b/src/pages/api/user/[id].ts index 421d094d..e0b3f2ee 100644 --- a/src/pages/api/user/[id].ts +++ b/src/pages/api/user/[id].ts @@ -56,7 +56,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => { export default withMethods(["GET", "PUT", "DELETE"], handler) -// valid jsdoc /** * @description Deletes a user and all of their posts, files, and accounts * @warning This function does not perform any authorization checks @@ -69,7 +68,7 @@ export async function deleteUser(id: string | undefined) { authorId: id } }) - + await prisma.user.delete({ where: { id