Skip to content

Commit 3615f30

Browse files
committed
Fix for proper api usage
1 parent d5d164e commit 3615f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EnLock/EnExtention.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static async Task<T> ToFirstWithNoLockAsync<T>(this IQueryable<T> query,
7979
},
8080
TransactionScopeAsyncFlowOption.Enabled))
8181
{
82-
result = await query.FirstOrDefaultAsync(cancellationToken);
82+
result = await query.FirstAsync(cancellationToken);
8383
scope.Complete();
8484
}
8585
return result;

0 commit comments

Comments
 (0)