Schedule segments recalculation every day

[MAILPOET-3633]
This commit is contained in:
Jan Lysý
2021-05-21 14:58:16 +02:00
committed by Veljko V
parent 993ba6ec3f
commit 050688e155
2 changed files with 3 additions and 3 deletions

View File

@ -185,8 +185,8 @@ class SegmentsRepository extends Repository {
return $rows;
}
public function findByUpdatedScoreNotInLastMonth(int $limit): array {
$dateTime = (new Carbon())->subMonths(1);
public function findByUpdatedScoreNotInLastDay(int $limit): array {
$dateTime = (new Carbon())->subDay();
return $this->entityManager->createQueryBuilder()
->select('s')
->from(SegmentEntity::class, 's')