Revert "Feature/harim data"

This commit is contained in:
Amir Ghasempoor
2025-10-18 09:22:18 +03:30
committed by GitHub
parent 2019e06a88
commit 13604bdeb3
7 changed files with 6 additions and 38 deletions

View File

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