Skip to content

Commit

Permalink
Adding second notification where clause as andWhere (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
acampos1916 committed Mar 11, 2021
1 parent 65a145c commit 496e998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Components/NotificationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function getNextNotificationToHandle()
{
$builder = $this->notificationRepository->createQueryBuilder('n');
$builder->where("n.status = :statusReceived OR n.status = :statusRetry")
->where('(n.scheduledProcessingTime <= :processingTime OR n.scheduledProcessingTime IS NULL)')
->andWhere('(n.scheduledProcessingTime <= :processingTime OR n.scheduledProcessingTime IS NULL)')
->orderBy('n.updatedAt', 'ASC')
->setParameter('statusReceived', NotificationStatus::STATUS_RECEIVED)
->setParameter('statusRetry', NotificationStatus::STATUS_RETRY)
Expand Down

0 comments on commit 496e998

Please sign in to comment.