aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-04-02 22:15:18 +0200
committerBond_009 <bond.009@outlook.com>2019-06-28 12:14:27 +0200
commite88ebd748d98cf9bd2a3978d36254f1644ce751a (patch)
treee3316459f42b9c849dd17ebd33d06d646be0b9f3 /Emby.Server.Implementations/Security/AuthenticationRepository.cs
parentb6954f3bfd68c87923348444a5923406cf672f9b (diff)
Final fixes
Diffstat (limited to 'Emby.Server.Implementations/Security/AuthenticationRepository.cs')
-rw-r--r--Emby.Server.Implementations/Security/AuthenticationRepository.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
index efe56c081..29afb9f64 100644
--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs
+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
@@ -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);
}
}