docs: #324 altering some obsolete code to adapt to changes

This commit is contained in:
Hamid Reza Mohammadi 2022-05-26 10:20:28 +04:30
parent 9f31323c6b
commit b4090627df
2 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ namespace RMuseum.Services.Implementation
}
context.UpdateRange(pins);
var similars = await context.GanjoorCachedRelatedPoems.Where(s => s.FullUrl == srcPoem.FullUrl).ToListAsync();
var similars = await context.GanjoorCachedRelatedSections.Where(s => s.FullUrl.Contains(srcPoem.FullUrl)).ToListAsync();
context.RemoveRange(similars);
var corrections = await context.GanjoorPoemCorrections.Include(c => c.VerseOrderText).Where(c => c.PoemId == srcPoem.Id).ToListAsync();

View File

@ -2918,7 +2918,7 @@ namespace RMuseum.Services.Implementation
var music = await _context.GanjoorPoemMusicTracks.Where(m => m.PoemId == id).ToListAsync();
_context.RemoveRange(music);
var similars = await _context.GanjoorCachedRelatedPoems.Where(s => s.FullUrl == poem.FullUrl).ToListAsync();
var similars = await _context.GanjoorCachedRelatedSections.Where(s => s.FullUrl.Contains(poem.FullUrl)).ToListAsync();
_context.RemoveRange(similars);
var corrections = await _context.GanjoorPoemCorrections.Include(c => c.VerseOrderText).Where(c => c.PoemId == id).ToListAsync();