Update all usages of CreateContext to use either Run or Write

This commit is contained in:
Dean Herbert
2022-01-21 17:08:20 +09:00
parent da0a803e6c
commit 114c9e8c1f
22 changed files with 230 additions and 250 deletions

View File

@ -103,10 +103,10 @@ namespace osu.Game.Beatmaps
public void Update(BeatmapSetInfo item)
{
ContextFactory.Run(realm =>
ContextFactory.Write(realm =>
{
var existing = realm.Find<BeatmapSetInfo>(item.ID);
realm.Write(r => item.CopyChangesToRealm(existing));
item.CopyChangesToRealm(existing);
});
}
}