debug the accident module
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Console\Commands;
|
||||
|
||||
use App\Models\City;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Contracts\Filesystem\FileNotFoundException;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
@@ -27,8 +28,9 @@ class ExtractGeometryForCities extends Command
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
* @throws FileNotFoundException
|
||||
*/
|
||||
public function handle()
|
||||
public function handle(): int
|
||||
{
|
||||
$jsonPath = $this->argument('jsonPath');
|
||||
|
||||
@@ -103,8 +105,6 @@ class ExtractGeometryForCities extends Command
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
|
||||
$query = City::query()
|
||||
->find($cityId);
|
||||
|
||||
@@ -122,8 +122,6 @@ class ExtractGeometryForCities extends Command
|
||||
{
|
||||
$this->error("Something went wrong: $th");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
return parent::SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user