Skip to content

Commit

Permalink
Fixed query
Browse files Browse the repository at this point in the history
  • Loading branch information
simba77 committed Dec 4, 2023
1 parent b1975e4 commit f71da6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/DealRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public function getClosedDealsForUserByFilter(User $user, ?DealsFilterRequestDTO
}
if (! empty($filter->endDate)) {
$builder->andWhere('d.updatedAt <= :updated_at')
->setParameter('updated_at', Carbon::createFromFormat('d.m.Y', $filter->startDate)->setTime(23, 59, 59));
->setParameter('updated_at', Carbon::createFromFormat('d.m.Y', $filter->endDate)->setTime(23, 59, 59));
}
}

Expand Down

0 comments on commit f71da6c

Please sign in to comment.