Skip to content

Commit

Permalink
Merge pull request #114 from infoshareacademy/feature/ja-115-fix
Browse files Browse the repository at this point in the history
feature/ja-115-fix
  • Loading branch information
Zjyslav committed Jun 27, 2024
2 parents b2e6bad + 50d4bfd commit b34cf73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TutorLizard.BusinessLogic/Services/StudentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public async Task<CreateScheduleItemRequestResponse> CreateScheduleItemRequest(C
public async Task<GetAvailableScheduleForAdResponse> GetAvailableScheduleForAd(GetAvailableScheduleForAdRequest request)
{
List<ScheduleItemDto> items = await _scheduleItemRepository.GetAll()
.Where(si => si.Ad.AdRequests.Any(ar => ar.StudentId == request.StudentId && ar.IsAccepted))
.Where(si => si.Ad.AdRequests.Any(ar => ar.StudentId == request.StudentId && ar.IsAccepted) && si.AdId == request.AdId)
.Select(si => new ScheduleItemDto()
{
AdId = si.AdId,
Expand Down

0 comments on commit b34cf73

Please sign in to comment.