Skip to content

Commit 5e55c81

Browse files
committed
Fix 200 Not Active
Setting isValid to false when a 200 is returned but the status of the permit is not "ACTIVE".
1 parent 3d196d8 commit 5e55c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/StrDss.Service/PermitValidationService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public PermitValidationService(IRegistrationApiClient regApiClient, IGeocoderApi
8686
else
8787
{
8888
_logger.LogInformation("Permit status is: ." + resp.Status);
89-
89+
isValid = string.Compare(resp.Status, "ACTIVE", StringComparison.OrdinalIgnoreCase) == 0;
9090
registrationText = "200:"+resp.Status;
9191
}
9292
}

0 commit comments

Comments
 (0)