Fixes 404 pages (#664)
This commit is contained in:
parent
b2f10eb528
commit
ebf49ca79e
1 changed files with 5 additions and 2 deletions
|
@ -117,7 +117,10 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
const eventType = user.eventTypes[0];
|
const eventType = user.eventTypes[0];
|
||||||
|
|
||||||
// check this is the first event
|
// check this is the first event
|
||||||
if (user.plan === "FREE") {
|
|
||||||
|
// TEMPORARILY disabled because of a bug during event create - during which users were able
|
||||||
|
// to create event types >n1.
|
||||||
|
/*if (user.plan === "FREE") {
|
||||||
const firstEventType = await prisma.eventType.findFirst({
|
const firstEventType = await prisma.eventType.findFirst({
|
||||||
where: {
|
where: {
|
||||||
OR: [
|
OR: [
|
||||||
|
@ -142,7 +145,7 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
|
||||||
notFound: true,
|
notFound: true,
|
||||||
} as const;
|
} as const;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
const getWorkingHours = (providesAvailability: { availability: Availability[] }) =>
|
const getWorkingHours = (providesAvailability: { availability: Availability[] }) =>
|
||||||
providesAvailability.availability && providesAvailability.availability.length
|
providesAvailability.availability && providesAvailability.availability.length
|
||||||
? providesAvailability.availability
|
? providesAvailability.availability
|
||||||
|
|
Loading…
Reference in a new issue