Update pages/api/users/_get.ts
remove console log Co-authored-by: Omar López <zomars@me.com>
This commit is contained in:
co-authored by
Omar López
parent
bd485b7b77
commit
f6faa8bc46
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user