sharing logic
Deploy / deploy (push) Successful in 2m33s

This commit is contained in:
twotalesanimation
2026-06-25 19:13:32 +02:00
parent 13d47315dd
commit 935a293777
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -632,7 +632,7 @@ export async function shareWithClient(shotId: string) {
},
});
if (!shot) throw new Error("Shot not found");
if (shot.shotApprovalStatus !== "INTERNALLY_APPROVED") {
if (!(["INTERNALLY_APPROVED", "CLIENT_APPROVED"] as string[]).includes(shot.shotApprovalStatus)) {
throw new Error("Shot must be internally approved before sharing with client");
}