fix: remove console logs

pull/9078/head
Agusti Fernandez Pardo 2022-05-28 01:51:25 +02:00
parent eea7c11488
commit 9c3f85834f
1 changed files with 1 additions and 2 deletions

View File

@ -25,8 +25,7 @@ export async function eventTypeById(
select: { eventTypes: true },
});
const userEventTypes = data.eventTypes.map((eventType) => eventType.id);
console.log(userEventTypes);
console.log(userId);
if (!userEventTypes.includes(safeQuery.data.id)) res.status(401).json({ message: "Unauthorized" });
else {
switch (method) {