adding a note for delete poet problems

This commit is contained in:
Hamid Reza Mohammadi 2021-11-02 18:01:39 +03:30
parent 6b801efb6a
commit 42464a14c3

View File

@ -3313,7 +3313,7 @@ namespace RMuseum.Services.Implementation
{
var pages = await context.GanjoorPages.Where(p => p.PoetId == id).ToListAsync();
context.GanjoorPages.RemoveRange(pages);
await jobProgressServiceEF.UpdateJob(job.Id, 50, "Deleting page and Querying the poet");
await jobProgressServiceEF.UpdateJob(job.Id, 50, "Deleting page and Querying the poet - if no progress unplublish and regen group by centuries");
var poet = await context.GanjoorPoets.Where(p => p.Id == id).SingleAsync();
context.GanjoorPoets.Remove(poet);
await jobProgressServiceEF.UpdateJob(job.Id, 99, "Deleting poet");