mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 09:44:47 +03:00
Final fixes
This commit is contained in:
@@ -348,9 +348,9 @@ namespace Emby.Server.Implementations.Security
|
||||
{
|
||||
using (var connection = GetConnection(true))
|
||||
{
|
||||
return connection.RunInTransaction(db =>
|
||||
return connection.RunInTransaction((Func<IDatabaseConnection, DeviceOptions>)(db =>
|
||||
{
|
||||
using (var statement = PrepareStatementSafe(db, "select CustomName from Devices where Id=@DeviceId"))
|
||||
using (var statement = base.PrepareStatement((IDatabaseConnection)db, (string)"select CustomName from Devices where Id=@DeviceId"))
|
||||
{
|
||||
statement.TryBind("@DeviceId", deviceId);
|
||||
|
||||
@@ -367,7 +367,7 @@ namespace Emby.Server.Implementations.Security
|
||||
return result;
|
||||
}
|
||||
|
||||
}, ReadTransactionMode);
|
||||
}), ReadTransactionMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user