fixing mistake in UpdatePoemsText
This commit is contained in:
parent
0ee1ed2436
commit
91eb72e729
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user