fix new logic to calculator with required and optional subjects
Tests & Lint & Deploy to Railway / deploy (push) Blocked by required conditions Details
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Has been cancelled Details

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();