Save changes after generating cached statistics.

This commit is contained in:
2020-09-11 02:30:59 +01:00
parent d7b19a46b6
commit e1b6a10233

View File

@@ -1120,6 +1120,8 @@ namespace RomRepoMgr.Core.Workers
ctx.RomSetStats.Add(stats); ctx.RomSetStats.Add(stats);
ctx.SaveChanges();
WorkFinished?.Invoke(this, System.EventArgs.Empty); WorkFinished?.Invoke(this, System.EventArgs.Empty);
RomSetAdded?.Invoke(this, new RomSetEventArgs RomSetAdded?.Invoke(this, new RomSetEventArgs