Skip to content

Commit

Permalink
tec: Fix datetimes of Messages created in seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
marien-probesys committed Jul 6, 2023
1 parent c49cf1d commit 9fe51fa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Command/SeedsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use App\Repository\UserRepository;
use App\Security\Encryptor;
use App\Utils\Random;
use App\Utils\Time;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
Expand Down Expand Up @@ -194,6 +195,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => false,
'ticket' => $ticketEmails,
'createdAt' => Time::ago(1, 'day'),
'createdBy' => $userCharlie,
'via' => 'webapp',
]);
Expand All @@ -204,6 +206,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => true,
'ticket' => $ticketEmails,
'createdAt' => Time::ago(10, 'hours'),
'createdBy' => $userAlix,
'via' => 'webapp',
]);
Expand All @@ -214,6 +217,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => false,
'ticket' => $ticketEmails,
'createdAt' => Time::ago(9, 'hours'),
'createdBy' => $userAlix,
'via' => 'webapp',
]);
Expand All @@ -238,6 +242,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => false,
'ticket' => $ticketUpdate,
'createdAt' => Time::ago(5, 'days'),
'createdBy' => $userCharlie,
'via' => 'webapp',
]);
Expand All @@ -248,6 +253,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => false,
'ticket' => $ticketUpdate,
'createdAt' => Time::now(),
'createdBy' => $userAlix,
'via' => 'webapp',
]);
Expand All @@ -274,6 +280,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
HTML,
'isConfidential' => false,
'ticket' => $ticketFilter,
'createdAt' => Time::ago(42, 'days'),
'createdBy' => $userBenedict,
'via' => 'webapp',
]);
Expand Down

0 comments on commit 9fe51fa

Please sign in to comment.