Cascade delete metadata when beatmaps are deleted

This commit is contained in:
Dean Herbert 2022-01-12 16:17:11 +09:00
parent 34aa1bf21d
commit e12025dd48
1 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,8 @@ private void cleanupPendingDeletions()
foreach (var score in beatmap.Scores)
realm.Remove(score);
realm.Remove(beatmap.Metadata);
realm.Remove(beatmap);
}