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({
|
const eventTypesWithHidden = await prisma.eventType.findMany({
|
||||||
where: {
|
where: {
|
||||||
|
AND: [
|
||||||
|
{
|
||||||
|
teamId: null,
|
||||||
|
},
|
||||||
|
{
|
||||||
OR: [
|
OR: [
|
||||||
{
|
{
|
||||||
userId: user.id,
|
userId: user.id,
|
||||||
|
@ -105,6 +110,8 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
slug: true,
|
slug: true,
|
||||||
|
|
Loading…
Reference in a new issue