Logica envio de urls a clientes

parent b9de2e7c
......@@ -15,7 +15,7 @@ use App\Entity\PluLista;
use App\Entity\PluSuscripcion;
use App\Entity\PluTipoWapush;
use App\Entity\PluEntelWapushMasive;
use App\Entity\PluEntelProximaFecha;
use App\Entity\PluEntelWapushProximaFecha;
class EnviarWapushUsuariosCommand extends Command {
......@@ -39,7 +39,7 @@ class EnviarWapushUsuariosCommand extends Command {
$io = new SymfonyStyle($input, $output);
$fechaActual = new \DateTime();
$fechaSiguiente = new \DateTime();
$ultimaFechaEjecucion = $this->em->getRepository(PluEntelProximaFecha::class)->getUltimaFechaEjecucion();
$ultimaFechaEjecucion = $this->em->getRepository(PluEntelWapushProximaFecha::class)->getUltimaFechaEjecucion();
$ejecutar = 0;
if ($ultimaFechaEjecucion == null) {
......@@ -66,7 +66,7 @@ class EnviarWapushUsuariosCommand extends Command {
}
endforeach;
$nuevaFechaSiguienteEjecucion = new \PluEntelProximaFecha();
$nuevaFechaSiguienteEjecucion = new \PluEntelWapushProximaFecha();
$nuevaFechaSiguienteEjecucion->setEwfFecha($fechaSiguiente->modify('+7 days'));
$this->em->persist($nuevaFechaSiguienteEjecucion);
$this->em->flush();
......
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