This commit is contained in:
@@ -28,6 +28,7 @@ async function getProject(id: string) {
|
||||
orderBy: { createdAt: "asc" },
|
||||
include: {
|
||||
artist: { select: { id: true, name: true, image: true, email: true } },
|
||||
shotGroup: { select: { id: true, name: true } },
|
||||
versions: {
|
||||
take: 1,
|
||||
orderBy: { versionNumber: "desc" },
|
||||
@@ -70,6 +71,10 @@ async function getProject(id: string) {
|
||||
},
|
||||
},
|
||||
},
|
||||
shotGroups: {
|
||||
orderBy: [{ sortOrder: "asc" }, { name: "asc" }],
|
||||
select: { id: true, name: true },
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -202,6 +207,7 @@ export default async function ProjectPage({ params }: { params: Promise<{ id: st
|
||||
assets={project.assets as any}
|
||||
tasks={project.tasks as any}
|
||||
artists={artists}
|
||||
shotGroups={project.shotGroups}
|
||||
canManage={!!canManage}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user