api/src/controllers/young/account.js
Consider simplifying this complex logical expression. Open
Open
if (
// Cohort and status should be checked
value.department !== young.department &&
value.cohort !== "à venir" &&
young.statusPhase1 === YOUNG_STATUS_PHASE1.WAITING_AFFECTATION &&