Apply suggestions from code review
This commit is contained in:
@@ -85,7 +85,7 @@ export const getStaticProps = async (context: GetStaticPropsContext) => {
|
||||
|
||||
return {
|
||||
props: {
|
||||
apps: apps,
|
||||
apps,
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -641,7 +641,6 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
|
||||
const dynamicEventName = asStringOrNull(context.query.eventName) ?? "";
|
||||
if (typeof context.query.bookingId !== "string") return { notFound: true } as const;
|
||||
const bookingId = parseInt(context.query.bookingId);
|
||||
//http://localhost:3000/success?date=2022-06-02T02%3A00%3A00-06%3A00&type=5&user=pro&name=Stripe%20Stripeson
|
||||
|
||||
if (isNaN(typeId)) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user