+1
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user