From 81bcbb1aedd43a3d26a018b32a298f205e1906c4 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Tue, 12 Dec 2023 09:59:00 +0330 Subject: [PATCH] #415 bug fix --- RMuseum/Services/Implementation/RecitationService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RMuseum/Services/Implementation/RecitationService.cs b/RMuseum/Services/Implementation/RecitationService.cs index 12c6ff34..5733409c 100644 --- a/RMuseum/Services/Implementation/RecitationService.cs +++ b/RMuseum/Services/Implementation/RecitationService.cs @@ -294,12 +294,12 @@ namespace RMuseum.Services.Implementationa { var source = from poem in _context.GanjoorPoems.AsNoTracking() from audio in _context.Recitations - .Where(a => a.GanjoorPostId == poem.Id && a.ReviewStatus == AudioReviewStatus.Approved) + .Where(a => a.GanjoorPostId == poem.Id && a.ReviewStatus == AudioReviewStatus.Approved && a.RecitationType == RecitationType.Normal) .OrderBy(a => a.AudioOrder) .Take(1) .DefaultIfEmpty() where - poem.CatId == catId && audio != null && audio.RecitationType == RecitationType.Normal + poem.CatId == catId && audio != null orderby poem.Id select new PublicRecitationViewModel() {