aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Devices
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-19 15:24:53 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-19 15:24:53 -0400
commit67308f489f8b321aa00755e4c74ce55c54928bc7 (patch)
treec11c5504811dc91b2b6479bfe7dedc715bb57bb5 /Jellyfin.Server.Implementations/Devices
parent2a9474f6e706624ce93883b4cb7616937e205f76 (diff)
Implement DeleteDevice
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices')
-rw-r--r--Jellyfin.Server.Implementations/Devices/DeviceManager.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs b/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
index b87245f0b..638ed24a2 100644
--- a/Jellyfin.Server.Implementations/Devices/DeviceManager.cs
+++ b/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 />