fix: remove console statements

This commit is contained in:
Agusti Fernandez Pardo committed 2022-03-26 01:41:22 +01:00
1 parent 12a7129e5a
commit f2be36f89c
4 files changed
-4

No files matched your search

-1
View File
@@ -12,7 +12,6 @@ export default async function user(req: NextApiRequest, res: NextApiResponse<Res
const users = await prisma.user.findMany();
res.status(200).json({ data: { ...users } });
} catch (error) {
console.log(error);
// FIXME: Add zod for validation/error handling
res.status(400).json({ error: error });
}