Skip to content

Commit

Permalink
refactor: utilize await instead of .Result
Browse files Browse the repository at this point in the history
  • Loading branch information
HunorTotBagi committed Oct 15, 2024
1 parent 80badd7 commit 37fd3a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async Task<IActionResult> StartSyncRun(StartSyncRunRequestBody requestBod
[FromHeader(Name = "X-Supported-Datawallet-Version")]
ushort supportedDatawalletVersion, CancellationToken cancellationToken)
{
var identity = _identitiesRepository.FindByAddress(_userContext.GetAddress(), CancellationToken.None).Result;
var identity = await _identitiesRepository.FindByAddress(_userContext.GetAddress(), CancellationToken.None);

if (identity!.Status == IdentityStatus.ToBeDeleted)
throw new ApplicationException(ApplicationErrors.SyncRuns.CannotStartSyncRunWhileIdentityIsToBeDeleted());
Expand Down

0 comments on commit 37fd3a4

Please sign in to comment.