fix: move log of userId

This commit is contained in:
Agusti Fernandez Pardo committed 2022-05-23 23:18:41 +02:00
1 parent beca5152e9
commit 4629c5d5c7
1 file changed
+1 -1
+1 -1
View File
@@ -10,6 +10,7 @@ async function createOrlistAllEventTypes(
{ method, body, userId }: NextApiRequest,
res: NextApiResponse<EventTypesResponse | EventTypeResponse>
) {
console.log("userId:", userId);
if (method === "GET") {
/**
* @swagger
@@ -33,7 +34,6 @@ async function createOrlistAllEventTypes(
.findMany({ where: { userId } })
.catch((error) => res.status(404).json({ message: "No event types were found", error }));
console.log("eventTypes:", data);
console.log("userId:", userId);
// const event_types = data.map(
// async (eventType) => await schemaEventTypeReadPublic.safeParseAsync(eventType)
// );