Skip to content

Commit

Permalink
Fix - test invalide pour vérifier si le withholding est en attente
Browse files Browse the repository at this point in the history
  • Loading branch information
noelmugnier committed Dec 9, 2020
1 parent 76453bd commit 253ebe4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public async Task<Result<TransactionStatus>> Handle(ProcessWithholdingCommand re
if (withholding.Status == TransactionStatus.Succeeded)
return Ok(withholding.Status);
if (withholding.Status != TransactionStatus.Failed)
if (withholding.Status != TransactionStatus.Failed && withholding.Status != TransactionStatus.Waiting)
return Failed<TransactionStatus>(new BadRequestException(MessageKind.Withholding_Cannot_Process_Pending));
using (var transaction = await _context.BeginTransactionAsync(token))
Expand Down

0 comments on commit 253ebe4

Please sign in to comment.