mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Fix deletion and use single context for imports and deletions for now
This commit is contained in:
@ -87,9 +87,9 @@ namespace osu.Game.IO
|
||||
{
|
||||
foreach (var f in files.GroupBy(f => f.ID))
|
||||
{
|
||||
var refetch = context.Find<FileInfo>(f.First().ID);
|
||||
var refetch = context.FileInfo.Find(f.Key);
|
||||
refetch.ReferenceCount -= f.Count();
|
||||
context.Update(refetch);
|
||||
context.FileInfo.Update(refetch);
|
||||
}
|
||||
|
||||
context.SaveChanges();
|
||||
|
Reference in New Issue
Block a user