浏览代码

Implement DeleteDevice

Patrick Barron 4 年之前
父节点
当前提交
67308f489f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 />