mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Get device id from input
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
8a8b2c4380
commit
3c6485f0a1
@ -199,8 +199,7 @@ namespace Jellyfin.Server.Implementations.Devices
|
||||
/// <inheritdoc />
|
||||
public async Task DeleteDevice(Device device)
|
||||
{
|
||||
var id = _devices.FirstOrDefault(x => x.Value.Equals(device)).Key;
|
||||
_devices.TryRemove(id, out _);
|
||||
_devices.TryRemove(device.Id, out _);
|
||||
var dbContext = await _dbProvider.CreateDbContextAsync().ConfigureAwait(false);
|
||||
await using (dbContext.ConfigureAwait(false))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user