Change time of warranty sms notification from one month to 45 days. #715
This commit is contained in:
parent
9f2027fcc1
commit
0ece8b5864
1 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ class WarrantySMSCommand extends Command
|
||||||
protected function configure()
|
protected function configure()
|
||||||
{
|
{
|
||||||
$this->setName('warranty:sms')
|
$this->setName('warranty:sms')
|
||||||
->setDescription('Sends an SMS message to users whose warranty expired one month ago.')
|
->setDescription('Sends an SMS message to users whose warranty expired 45 days ago.')
|
||||||
->setHelp('Sends warranty SMS.')
|
->setHelp('Sends warranty SMS.')
|
||||||
->addArgument('date', InputArgument::OPTIONAL, 'Date to use as basis of expiration. Defaults to current date.');
|
->addArgument('date', InputArgument::OPTIONAL, 'Date to use as basis of expiration. Defaults to current date.');
|
||||||
}
|
}
|
||||||
|
|
@ -50,7 +50,7 @@ class WarrantySMSCommand extends Command
|
||||||
$date = new DateTime();
|
$date = new DateTime();
|
||||||
|
|
||||||
// -1 month
|
// -1 month
|
||||||
$date->modify('-1 month');
|
$date->modify('-45 day');
|
||||||
|
|
||||||
$warrs = $this->em->getRepository(Warranty::class)->findBy(['date_expire' => $date]);
|
$warrs = $this->em->getRepository(Warranty::class)->findBy(['date_expire' => $date]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue