From 34ef11f194fbab5ecf9c9f8d106c313b6fdb720f Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Tue, 2 Jul 2019 15:49:02 -0500 Subject: [PATCH] only close issue if no validation errors found --- src/FilterLists.Agent/Features/Urls/ValidateAllUrls.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FilterLists.Agent/Features/Urls/ValidateAllUrls.cs b/src/FilterLists.Agent/Features/Urls/ValidateAllUrls.cs index 4d937534e..097499e77 100644 --- a/src/FilterLists.Agent/Features/Urls/ValidateAllUrls.cs +++ b/src/FilterLists.Agent/Features/Urls/ValidateAllUrls.cs @@ -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); } } }