Fix cases of Access instead of Realm

This commit is contained in:
Dean Herbert
2022-01-25 12:58:15 +09:00
parent da771044a7
commit 3e5c9e8436
28 changed files with 82 additions and 82 deletions

View File

@ -98,12 +98,12 @@ namespace osu.Game.Beatmaps
/// <returns>The first result for the provided query, or null if no results were found.</returns>
public BeatmapInfo? QueryBeatmap(Expression<Func<BeatmapInfo, bool>> query)
{
return Access.Run(realm => realm.All<BeatmapInfo>().FirstOrDefault(query)?.Detach());
return Realm.Run(realm => realm.All<BeatmapInfo>().FirstOrDefault(query)?.Detach());
}
public void Update(BeatmapSetInfo item)
{
Access.Write(realm =>
Realm.Write(realm =>
{
var existing = realm.Find<BeatmapSetInfo>(item.ID);
item.CopyChangesToRealm(existing);