Update pages/api/users/_get.ts

remove console log statement

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Agusti Fernandez PardoandOmar López authored and GitHub committed 2022-07-08 19:34:26 +02:00
1 parent 80e414d4f5
commit 76d0b0c1ee
1 file changed
-1
-1
View File
@@ -35,7 +35,6 @@ async function getHandler(req: NextApiRequest) {
if (!isAdmin) where.id = userId;
const data = await prisma.user.findMany({ where, take, skip });
const users = schemaUsersReadPublic.parse(data);
console.log(users);
return { users };
}