only close issue if no validation errors found

This commit is contained in:
Collin M. Barrett 2019-07-02 15:49:02 -05:00
parent db25be46ec
commit 34ef11f194

View file

@ -57,7 +57,8 @@ protected override async Task Handle(Command request, CancellationToken cancella
if(results.Any())
await _mediator.Send(new CreateOrUpdateUrlValidationIssue.Command(results), cancellationToken);
await _mediator.Send(new CloseUrlValidationIssue.Command(), cancellationToken);
else
await _mediator.Send(new CloseUrlValidationIssue.Command(), cancellationToken);
}
}
}