add data input to request

This commit is contained in:
2025-10-18 09:20:24 +03:30
parent 352b506196
commit ae3a2b8ce0
6 changed files with 37 additions and 5 deletions

View File

@@ -78,7 +78,8 @@ class RoadObservationProblems extends Command
$mobile = $value->MobileForSendEventSms;
}
$cityModel = City::findCityWithLatLng($value->XGeo, $value->YGeo);
$city = findCityFromGeoJson($value->YGeo, $value->XGeo);
$cityModel = $city ? City::query()->find($city['city_id']) : City::query()->find(NikarayanComplaints::mapCities((int) $value->fk_Town));
$rop = RoadObserved::query()->updateOrCreate(
['fk_RegisteredEventMessage' => $value->fk_RegisteredEventMessage],
[

View File

@@ -41,8 +41,8 @@ class Kernel extends ConsoleKernel
$schedule->command("webservice:roadobserved --daily-mode")
->dailyAt('00:45')->appendOutputTo(storage_path('logs/nikarayan.log'));
$schedule->command("db:backup")
->weekly()->at('03:00')->appendOutputTo(storage_path('logs/mariadb-backup.log'));
// $schedule->command("db:backup")
// ->weekly()->at('03:00')->appendOutputTo(storage_path('logs/mariadb-backup.log'));
$schedule->command('telescope:prune --hours=48')
->dailyAt('04:00')