This commit is contained in:
@@ -106,11 +106,12 @@ async function getTeamMembers() {
|
||||
export default async function ProjectPage({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
const session = await auth();
|
||||
const [project, artists, clients, teamMembers] = await Promise.all([
|
||||
const [project, artists, clients, teamMembers, episodeDueDates] = await Promise.all([
|
||||
getProject(id),
|
||||
getProjectArtists(),
|
||||
getClients(),
|
||||
getTeamMembers(),
|
||||
db.episodeDueDate.findMany({ where: { projectId: id }, orderBy: { episode: "asc" } }),
|
||||
]);
|
||||
if (!project) notFound();
|
||||
|
||||
@@ -208,6 +209,7 @@ export default async function ProjectPage({ params }: { params: Promise<{ id: st
|
||||
tasks={project.tasks as any}
|
||||
artists={artists}
|
||||
shotGroups={project.shotGroups}
|
||||
episodeDueDates={episodeDueDates}
|
||||
canManage={!!canManage}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user