The Free Software Media System - Server Backend & API
Implement DeleteDevice
Patrick Barron67308f489f8b
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.csindex b87245f0b0..638ed24a23 100644--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs+++ b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs@@ -194,6 +194,8 @@ namespace Jellyfin.Server.Implementations.Devicespublic async Task DeleteDevice(Device device){await using var dbContext = _dbProvider.CreateContext();+ dbContext.Devices.Remove(device);+ await dbContext.SaveChangesAsync().ConfigureAwait(false);}/// <inheritdoc />