#221 calling _FillPoemCoupletIndices whenever verses are filled

This commit is contained in:
Hamid Reza Mohammadi 2021-10-11 19:02:15 +03:30
parent 73e6d5fd9f
commit c694846da5
2 changed files with 5 additions and 0 deletions

View File

@ -394,6 +394,7 @@ namespace RMuseum.Services.Implementation
if (anyChanges)
{
await _FillPoemCoupletIndices(context, poemId);
GanjoorComment sysComment = new GanjoorComment()
{
UserId = userId,
@ -749,6 +750,8 @@ namespace RMuseum.Services.Implementation
await context.SaveChangesAsync();//id set should be in order
}
await _FillPoemCoupletIndices(context, poemId);
try
{
var poemRhymeLettersRes = LanguageUtils.FindRhyme(poemVerses);

View File

@ -3025,6 +3025,8 @@ namespace RMuseum.Services.Implementation
_context.GanjoorVerses.Remove(oldVerses[v]);
}
}
await _FillPoemCoupletIndices(_context, id);
}
try
{