aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Security/AuthenticationRepository.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-13 02:36:30 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-12-13 02:36:30 -0500
commite1b880a5a072764cabace79cd6d1d65315ec65e4 (patch)
tree971f995ffd89246ca96c80b44a6266315812e4de /Emby.Server.Implementations/Security/AuthenticationRepository.cs
parentbff0cd4447119278d6aab5961f79f8a17c566a04 (diff)
update series queries
Diffstat (limited to 'Emby.Server.Implementations/Security/AuthenticationRepository.cs')
-rw-r--r--Emby.Server.Implementations/Security/AuthenticationRepository.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/Emby.Server.Implementations/Security/AuthenticationRepository.cs b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
index 392db6935..7199f4f4d 100644
--- a/Emby.Server.Implementations/Security/AuthenticationRepository.cs
+++ b/Emby.Server.Implementations/Security/AuthenticationRepository.cs
@@ -206,10 +206,10 @@ namespace Emby.Server.Implementations.Security
{
using (var connection = CreateConnection(true))
{
- var result = new QueryResult<AuthenticationInfo>();
-
- connection.RunInTransaction(db =>
+ return connection.RunInTransaction(db =>
{
+ var result = new QueryResult<AuthenticationInfo>();
+
var statementTexts = new List<string>();
statementTexts.Add(commandText);
statementTexts.Add("select count (Id) from AccessTokens" + whereTextWithoutPaging);
@@ -236,10 +236,10 @@ namespace Emby.Server.Implementations.Security
}
}
- }, ReadTransactionMode);
+ result.Items = list.ToArray();
+ return result;
- result.Items = list.ToArray();
- return result;
+ }, ReadTransactionMode);
}
}
}