Logica envio de urls a clientes

parent 27530ab5
......@@ -45,7 +45,7 @@ class EnviarWapushUsuariosCommand extends Command {
if ($ultimaFechaEjecucion == null) {
$log->debug("No existia ultima fecha...");
$ejecutar = 1;
} else if ($fechaActual->diff($ultimaFechaEjecucion)->format("%a") >= 7) {
} else if ($fechaActual->diff($ultimaFechaEjecucion->getEwfFecha())->format("%a") >= 7) {
$log->debug("Fechas distintas y superior a 7 dias de diferencia...");
$ejecutar = 1;
} else {
......
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