Temporarily disable checking video busy times (#603)

pull/600/head^2
Bailey Pumfleet 2021-09-08 09:14:13 +01:00 committed by GitHub
parent 375256084b
commit 50d727cbbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -1090,6 +1090,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
periodEndDate: true,
periodCountCalendarDays: true,
requiresConfirmation: true,
userId: true,
},
});
@ -1099,6 +1100,12 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
} as const;
}
if (eventType.userId != session.user.id) {
return {
notFound: true,
} as const;
}
const credentials = await prisma.credential.findMany({
where: {
userId: user.id,