update
This commit is contained in:
@@ -38,7 +38,8 @@ 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()->subHours(24)->format('Y-m-d H:i:s');
|
||||
$hora_antes = Carbon::now()->subMinutes(10)->format('Y-m-d H:i:s');
|
||||
|
||||
|
||||
$this->validarSaldosNegativos($hora_antes, $fecha_ahora);
|
||||
|
||||
|
||||
@@ -35,7 +35,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('telescope:prune --hours=24')->daily();
|
||||
|
||||
$schedule->command('tarea:validarCompra')->dailyAt('23:00');
|
||||
$schedule->command('tarea:validarCompra')->everyFiveMinutes();
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user