fix: some logggingeventtypeid
parent
eee5fd0090
commit
0b66e964fe
|
@ -25,6 +25,8 @@ 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) {
|
||||
|
|
Loading…
Reference in New Issue