Explorar o código

Implement DeleteDevice

Patrick Barron %!s(int64=4) %!d(string=hai) anos
pai
achega
67308f489f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)
         {
             await using var dbContext = _dbProvider.CreateContext();
+            dbContext.Devices.Remove(device);
+            await dbContext.SaveChangesAsync().ConfigureAwait(false);
         }
 
         /// <inheritdoc />