소스 검색

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 />