scripts/apps/relations/services/RelationsService.ts
Function validateWorkflow
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function validateWorkflow(
mediaItem: IArticle,
allowedWorkflowsConfig: Partial<typeof defaultAllowedWorkflows>,
): {result: true} | {result: false; error: string} {
const allowedWorkflows = {