diff --git a/app/Console/Commands/validacionCompra.php b/app/Console/Commands/validacionCompra.php index e3fdd1e..a61113c 100644 --- a/app/Console/Commands/validacionCompra.php +++ b/app/Console/Commands/validacionCompra.php @@ -38,7 +38,7 @@ class validacionCompra extends Command { $fecha_ahora = Carbon::now()->format('Y-m-d H:i:s'); // Fecha y hora actual //$hora_antes = Carbon::now()->subHours(100)->format('Y-m-d H:i:s'); // 24 horas antes - $hora_antes = Carbon::now()->subMinutes(15)->format('Y-m-d H:i:s'); + $hora_antes = Carbon::now()->subHours(24)->format('Y-m-d H:i:s'); $this->validarSaldosNegativos($hora_antes, $fecha_ahora); diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index f345772..5261ec8 100755 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -34,7 +34,8 @@ class Kernel extends ConsoleKernel // $schedule->exec('nohup php /var/www/sirpremium/artisan queue:work --sleep=3 --tries=3 > /dev/null 2>&1 &')->everyMinute(); - $schedule->command('tarea:validarCompra')->everyTenMinutes(); + $schedule->command('tarea:validarCompra')->dailyAt('23:00'); +