csv take 2
Deploy / deploy (push) Failing after 50s

This commit is contained in:
twotalesanimation
2026-06-12 17:05:09 +02:00
parent c7fbcc206b
commit 2402d5414d
+7
View File
@@ -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)) {