fix: remove console logs
parent
eea7c11488
commit
9c3f85834f
|
@ -25,8 +25,7 @@ export async function eventTypeById(
|
||||||
select: { eventTypes: true },
|
select: { eventTypes: true },
|
||||||
});
|
});
|
||||||
const userEventTypes = data.eventTypes.map((eventType) => eventType.id);
|
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" });
|
if (!userEventTypes.includes(safeQuery.data.id)) res.status(401).json({ message: "Unauthorized" });
|
||||||
else {
|
else {
|
||||||
switch (method) {
|
switch (method) {
|
||||||
|
|
Loading…
Reference in New Issue