Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
musica_listas_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
musica_listas_backend
Commits
48c6b941
Commit
48c6b941
authored
May 02, 2019
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logica envio de urls a clientes
parent
b9de2e7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/Command/EnviarWapushUsuariosCommand.php
src/Command/EnviarWapushUsuariosCommand.php
+3
-3
No files found.
src/Command/EnviarWapushUsuariosCommand.php
View file @
48c6b941
...
...
@@ -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\PluEntel
Wapush
ProximaFecha
;
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
(
PluEntel
Wapush
ProximaFecha
::
class
)
->
getUltimaFechaEjecucion
();
$ejecutar
=
0
;
if
(
$ultimaFechaEjecucion
==
null
)
{
...
...
@@ -66,7 +66,7 @@ class EnviarWapushUsuariosCommand extends Command {
}
endforeach
;
$nuevaFechaSiguienteEjecucion
=
new
\PluEntelProximaFecha
();
$nuevaFechaSiguienteEjecucion
=
new
\PluEntel
Wapush
ProximaFecha
();
$nuevaFechaSiguienteEjecucion
->
setEwfFecha
(
$fechaSiguiente
->
modify
(
'+7 days'
));
$this
->
em
->
persist
(
$nuevaFechaSiguienteEjecucion
);
$this
->
em
->
flush
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment