fixing mistake in UpdatePoemsText

This commit is contained in:
Hamid Reza Mohammadi 2020-12-03 20:49:04 +03:30
parent 0ee1ed2436
commit 91eb72e729

View File

@ -211,20 +211,19 @@ namespace RMuseum.Services.Implementation
}
break;
}
}
poem.PlainText = plainText;
poem.HtmlText = htmlText;
poem.PlainText = plainText;
poem.HtmlText = htmlText;
context.Update(poem);
context.Update(poem);
n++;
if(n >= 100)
{
await context.SaveChangesAsync();
n = 0;
}
n++;
if (n >= 1000)
{
await context.SaveChangesAsync();
n = 0;
}
}