diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-06-19 15:24:53 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-06-19 15:24:53 -0400 |
| commit | 67308f489f8b321aa00755e4c74ce55c54928bc7 (patch) | |
| tree | c11c5504811dc91b2b6479bfe7dedc715bb57bb5 /Jellyfin.Server.Implementations/Devices | |
| parent | 2a9474f6e706624ce93883b4cb7616937e205f76 (diff) | |
Implement DeleteDevice
Diffstat (limited to 'Jellyfin.Server.Implementations/Devices')
| -rw-r--r-- | Jellyfin.Server.Implementations/Devices/DeviceManager.cs | 2 |
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 /> |
