new Approval Updates
Deploy / deploy (push) Failing after 3m34s

This commit is contained in:
twotalesanimation
2026-06-11 12:30:28 +02:00
parent b9610454d9
commit 3f0c5d1dbe
19 changed files with 2015 additions and 70 deletions
+3 -6
View File
@@ -28,15 +28,11 @@ export async function GET(
return NextResponse.json({ error: "Project not found" }, { status: 404 });
}
// Find shots that have at least one task with a client-visible version
// Only return shots that have been explicitly shared with the client
const shots = await db.shot.findMany({
where: {
projectId: session.projectId,
tasks: {
some: {
versions: { some: { isClientVisible: true } },
},
},
sharedWithClient: true,
},
orderBy: [{ sequence: "asc" }, { shotCode: "asc" }],
select: {
@@ -45,6 +41,7 @@ export async function GET(
sequence: true,
description: true,
status: true,
shotApprovalStatus: true,
thumbnailUrl: true,
tasks: {
where: {