This commit is contained in:
Hamid Reza Mohammadi 2023-12-12 09:59:00 +03:30
parent b605397f75
commit 81bcbb1aed

View File

@ -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()
{