Update pages/api/users/_get.ts

remove console log

Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
Agusti Fernandez Pardo
2022-07-08 19:33:17 +02:00
committed by GitHub
co-authored by Omar López
parent bd485b7b77
commit f6faa8bc46
-1
View File
@@ -34,7 +34,6 @@ async function getHandler(req: NextApiRequest) {
// If user is not ADMIN, return only his data.
if (!isAdmin) where.id = userId;
const data = await prisma.user.findMany({ where, take, skip });
console.log(data);
const users = schemaUsersReadPublic.parse(data);
console.log(users);
return { users };