fix new logic to calculator with required and optional subjects

This commit is contained in:
aslan 2024-03-18 11:55:25 +03:00
parent 8a94e7a750
commit 75870ab2fd
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class CalculatorController extends Controller
->filter(fn($optionalSubject) => in_array($optionalSubject, $calcultatorSubjects));
return $optionalSubjectsInCalculator->count() !== 0;
}
return true;
})->map(fn($subjectTypes, $directionId) => $directionId);
$directions = Direction::whereIn('id', $result)->get();