fix for adding up unplublished recitations when comparing with MaxRecitationsPerPoem
This commit is contained in:
parent
2f7dad15c2
commit
03dd7ec3d4
@ -896,7 +896,7 @@ namespace RMuseum.Services.Implementationa
|
||||
else
|
||||
{
|
||||
bool overCrowdedPoem = false;
|
||||
if (maxRecitationsPerPoem != 0 && maxRecitationsPerPoem <= (await context.Recitations.AsNoTracking().CountAsync(r => r.GanjoorPostId == audio.PoemId)))
|
||||
if (maxRecitationsPerPoem != 0 && maxRecitationsPerPoem <= (await context.Recitations.AsNoTracking().CountAsync(r => r.GanjoorPostId == audio.PoemId && r.ReviewStatus == AudioReviewStatus.Approved)))
|
||||
{
|
||||
if
|
||||
(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user