Fix incorrect check for beatmap availability

This commit is contained in:
Dan Balasescu 2022-02-08 19:36:41 +09:00
parent 9c2d57d707
commit b1a73996ba
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ protected override bool CanReuseExisting(BeatmapSetInfo existing, BeatmapSetInfo
public override bool IsAvailableLocally(BeatmapSetInfo model) public override bool IsAvailableLocally(BeatmapSetInfo model)
{ {
return Realm.Run(realm => realm.All<BeatmapInfo>().Any(b => b.OnlineID == model.OnlineID)); return Realm.Run(realm => realm.All<BeatmapSetInfo>().Any(b => b.OnlineID == model.OnlineID));
} }
public override string HumanisedModelName => "beatmap"; public override string HumanisedModelName => "beatmap";