LD 5 роки тому
батько
коміт
b76dbde726
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      app/Services/StationTaskBatchService.php

+ 2 - 1
app/Services/StationTaskBatchService.php

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