mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Query User on device creation
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
5a62c7a146
commit
d235378133
@ -100,10 +100,13 @@ namespace Jellyfin.Server.Implementations.Devices
|
|||||||
dbContext.Devices.Add(device);
|
dbContext.Devices.Add(device);
|
||||||
|
|
||||||
await dbContext.SaveChangesAsync().ConfigureAwait(false);
|
await dbContext.SaveChangesAsync().ConfigureAwait(false);
|
||||||
|
var newDevice = await dbContext.Devices
|
||||||
|
.Include(d => d.User)
|
||||||
|
.FirstOrDefaultAsync(d => d.Id == device.Id)
|
||||||
|
.ConfigureAwait(false);
|
||||||
|
_devices.Add(device.Id, newDevice!);
|
||||||
}
|
}
|
||||||
|
|
||||||
_devices.Add(device.Id, device);
|
|
||||||
|
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user