Browse Source

Implement DeleteDevice

Patrick Barron 4 years ago
parent
commit
67308f489f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Jellyfin.Server.Implementations/Devices/DeviceManager.cs

+ 2 - 0
Jellyfin.Server.Implementations/Devices/DeviceManager.cs

@@ -194,6 +194,8 @@ namespace Jellyfin.Server.Implementations.Devices
         public async Task DeleteDevice(Device device)
         public async Task DeleteDevice(Device device)
         {
         {
             await using var dbContext = _dbProvider.CreateContext();
             await using var dbContext = _dbProvider.CreateContext();
+            dbContext.Devices.Remove(device);
+            await dbContext.SaveChangesAsync().ConfigureAwait(false);
         }
         }
 
 
         /// <inheritdoc />
         /// <inheritdoc />