Skip to content

Commit

Permalink
Merge branch 'hotfix-7.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonPobiega committed Sep 26, 2017
2 parents be91bd8 + 69a72ce commit d240706
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,7 @@ public async Task<TimeoutData> Peek(string timeoutId, ContextBag context)
using (var session = await OpenSession(context).ConfigureAwait(false))
{
var id = Guid.Parse(timeoutId);
var te = session.Session().QueryOver<TimeoutEntity>()
.Where(x => x.Id == id)
.List()
.SingleOrDefault();
var te = session.Session().Get<TimeoutEntity>(id, LockMode.Upgrade);

var timeout = MapToTimeoutData(te);
return timeout;
Expand Down

0 comments on commit d240706

Please sign in to comment.