parent
420daec147
commit
2b2fde179a
1 changed files with 13 additions and 6 deletions
|
@ -92,6 +92,11 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
|||
|
||||
const eventTypesWithHidden = await prisma.eventType.findMany({
|
||||
where: {
|
||||
AND: [
|
||||
{
|
||||
teamId: null,
|
||||
},
|
||||
{
|
||||
OR: [
|
||||
{
|
||||
userId: user.id,
|
||||
|
@ -105,6 +110,8 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
|||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
select: {
|
||||
id: true,
|
||||
slug: true,
|
||||
|
|
Loading…
Reference in a new issue