Implement DeleteDevice

This commit is contained in:
Patrick Barron 2021-06-19 15:24:53 -04:00
parent 2a9474f6e7
commit 67308f489f
1 changed files with 2 additions and 0 deletions

View File

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