Merge pull request 'removed log for plan query time' (#1141) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #1141
This commit was merged in pull request #1141.
This commit is contained in:
2026-09-30 10:49:04 +00:00

View File

@@ -468,8 +468,6 @@ class ProductionTargetPlan extends Component
$dates = $this->getMonthDates($month, $year);
$this->dates = $dates;
$start = microtime(true);
$plans = ProductionPlan::query()
->join('items', 'items.id', '=', 'production_plans.item_id')
->join('lines', 'lines.id', '=', 'production_plans.line_id')
@@ -495,8 +493,6 @@ class ProductionTargetPlan extends Component
)
->get();
Log::info('Plans: ' . ((microtime(true) - $start) * 1000) . ' ms');
$leaveDates = [];
if ($plans->isNotEmpty() && $plans[0]->leave_dates) {