Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { Booking, Event } from "@/database";
import { revalidatePath } from "next/cache";

interface RouteParams {
params: Promise<{ id: string }>;
params: Promise<{ slug: string }>;
}

const EMAIL_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

export async function POST(req: NextRequest, { params }: RouteParams) {
try {
const { id: eventId } = await params;
const { slug: eventId } = await params;
Comment thread
SatyamPandey-07 marked this conversation as resolved.
Comment thread
SatyamPandey-07 marked this conversation as resolved.

// 1. Validate event ID
if (!eventId || !Types.ObjectId.isValid(eventId)) {
Expand Down
2 changes: 1 addition & 1 deletion app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
}

body {
@apply min-h-screen bg-background text-foreground antialiased transition-colors duration-300;
@apply relative min-h-screen bg-background text-foreground antialiased transition-colors duration-300;
font-family: var(--font-sans-brand);
background-image: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 34rem);
}
Expand Down
8 changes: 1 addition & 7 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ export default async function Page() {
// 1. Fetch general events
const events = await getAllEvents();

const { events } = await getAllEvents({
query: resolvedParams.query,
mode: resolvedParams.mode,
tag: resolvedParams.tag,
});


return (
<section>
Expand Down Expand Up @@ -55,5 +51,3 @@ export default async function Page() {
</section>
)
}

export default Page;
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
"@commitlint/cli": "^21.0.2",
"@commitlint/config-conventional": "^21.0.2",
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/node": "20.19.43",
"@types/react": "19.2.17",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "16.1.3",
"husky": "^9.1.7",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
"typescript": "5.9.3"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
"exclude": [
"node_modules"
]
}
}