Batch Video Uploads
Deploy / deploy (push) Successful in 2m38s

This commit is contained in:
twotalesanimation
2026-07-09 12:46:50 +02:00
parent 77cfcbc9e9
commit 637b141c87
6 changed files with 1105 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
import { redirect } from "next/navigation";
import { auth } from "@/auth";
import { db } from "@/lib/db";
import { BatchUploadClient } from "@/components/batch-upload/BatchUploadClient";
export const metadata = { title: "Batch Upload — VFX Review" };
export default async function BatchUploadPage() {
const session = await auth();
if (!session?.user) redirect("/login");
if (!["ADMIN", "PRODUCER", "SUPERVISOR"].includes(session.user.role)) {
redirect("/dashboard");
}
const projects = await db.project.findMany({
where: { status: { in: ["ACTIVE", "ON_HOLD"] } },
select: { id: true, name: true, code: true },
orderBy: { name: "asc" },
});
return <BatchUploadClient projects={projects} />;
}