pre-bemis

This commit is contained in:
Marcelo
2026-04-22 05:04:19 +00:00
parent ac1a7900c8
commit 80d27f83b6
91 changed files with 11769 additions and 820 deletions

View File

@@ -3,14 +3,14 @@ import { redirect } from "next/navigation";
import { prisma } from "@/lib/prisma";
import InviteAcceptForm from "./InviteAcceptForm";
export default async function InvitePage({ params }: { params: { token: string } | Promise<{ token: string }> }) {
export default async function InvitePage({ params }: { params: Promise<{ token: string }> }) {
const session = (await cookies()).get("mis_session")?.value;
if (session) {
redirect("/machines");
}
const resolvedParams = await Promise.resolve(params);
const token = String(resolvedParams?.token || "").trim().toLowerCase();
const { token: rawToken } = await params;
const token = String(rawToken || "").trim().toLowerCase();
let invite = null;
let error: string | null = null;