Fix Aadhaar docType when handled false
All checks were successful
build-and-deploy / build-deploy (push) Successful in 31s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 31s
This commit is contained in:
@@ -287,7 +287,9 @@ class DocumentExtractionService(
|
||||
}
|
||||
|
||||
private fun computeDocType(results: Map<String, String>, handled: Boolean): String {
|
||||
if (!handled) return "GENERAL"
|
||||
if (!handled && !(isYes(results["hasAadhar"]) || isYes(results["hasUidai"]))) {
|
||||
return "GENERAL"
|
||||
}
|
||||
return when {
|
||||
isYes(results["hasCourt"]) ||
|
||||
isYes(results["hasHighCourt"]) ||
|
||||
|
||||
Reference in New Issue
Block a user