Update pages/api/users/_get.ts
remove console log statement Co-authored-by: Omar López <zomars@me.com>pull/9078/head
parent
80e414d4f5
commit
76d0b0c1ee
|
@ -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 };
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue