Logica envio de urls a clientes

parent 164d3b9b
......@@ -45,8 +45,8 @@ class EnviarWapushUsuariosCommand extends Command {
if ($ultimaFechaEjecucion == null) {
$log->debug("No existia ultima fecha...");
$ejecutar = 1;
} else if ($ultimaFechaEjecucion->getEwfFecha()->format('Y-m-d') != $fechaActual->format('Y-m-d')) {
$log->debug("Fechas distintas...");
} else if ($fechaActual->diff($ultimaFechaEjecucion)->format("%a") >= 7) {
$log->debug("Fechas distintas y superior a 7 dias de diferencia...");
$ejecutar = 1;
} else {
$log->debug("El proceso ya se ejecuto.");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment