LD 5 rokov pred
rodič
commit
b76dbde726
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      app/Services/StationTaskBatchService.php

+ 2 - 1
app/Services/StationTaskBatchService.php

@@ -54,7 +54,8 @@ class StationTaskBatchService
         $this->batchService = app('BatchService');
         $this->batchService = app('BatchService');
 
 
         $stationTaskBatches_toCreate = new Collection();
         $stationTaskBatches_toCreate = new Collection();
-        $id_stationTaskBatchType = $this->stationTaskBatchTypeService->firstByWhere('name', 'U型线分捡');
+        $stationTaskBatchType = $this->stationTaskBatchTypeService->firstByWhere('name', 'U型线分捡');
+        $id_stationTaskBatchType=$stationTaskBatchType['id']??'';
 
 
         $batches_handled = collect();
         $batches_handled = collect();
         foreach ($batches as $batch) {
         foreach ($batches as $batch) {