diff --git a/Edge.MyMusic/src/Edge.MyMusic/Repositories/MusicInMemoryRepository.cs b/Edge.MyMusic/src/Edge.MyMusic/Repositories/MusicInMemoryRepository.cs index 28d478e..c901ca1 100644 --- a/Edge.MyMusic/src/Edge.MyMusic/Repositories/MusicInMemoryRepository.cs +++ b/Edge.MyMusic/src/Edge.MyMusic/Repositories/MusicInMemoryRepository.cs @@ -9,7 +9,7 @@ namespace Edge.MyMusic.Repositories; internal class MusicInMemoryRepository : IMusicRepository { - private readonly static ConcurrentDictionary _datastore; + private readonly static IDictionary _datastore; static MusicInMemoryRepository() { @@ -134,7 +134,7 @@ public Task AddMusicAsync(MusicDocument doc) public Task DeleteMusicAsync(string id) { - _datastore.Remove(id, out MusicDocument? _); + _datastore.Remove(id); return Task.CompletedTask; }