hts/apps/migrant/app/[locale]/manage/page.tsx

16 lines
502 B
TypeScript

// import { getTenantId } from "@/lib/auth";
// import { db } from "@/lib/db";
import { redirect } from "next/navigation";
export default async function TenantOverviewPage() {
// const tenantId = getTenantId();
// const workspace = await db.query.workspaces.findFirst({
// where: (table, { and, eq, isNull }) =>
// and(eq(table.tenantId, tenantId), isNull(table.deletedAt)),
// });
// if (!workspace) {
// return redirect("/new");
// }
return redirect("/manage/overview");
}