diff --git a/actions/shots.ts b/actions/shots.ts index bdabd1e..733c06c 100644 --- a/actions/shots.ts +++ b/actions/shots.ts @@ -942,6 +942,13 @@ export async function importShotsFromEdl( revalidatePath(`/projects/${projectId}`); return { created, updated, skipped, errors }; } + +/** + * Internal: handle client requesting changes on a shot. + * Resets shotApprovalStatus = PENDING, sharedWithClient = false. + * Recalculates shot status (will become REVISIONS if tasks set to CHANGES). + */ +export async function clientRequestShotChanges(shotId: string, taskId?: string) { const session = await auth(); if (!session?.user) throw new Error("Unauthorized"); if (!["ADMIN", "PRODUCER", "SUPERVISOR", "CLIENT"].includes(session.user.role)) {