From 366673c6904d5ba3dfa07c2b477aa17ae3dc1728 Mon Sep 17 00:00:00 2001 From: androidlover5842 Date: Sat, 31 Jan 2026 10:19:17 +0530 Subject: [PATCH] Fix Aadhaar docType when handled false --- .../trisolarisserver/component/DocumentExtractionService.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/android/trisolarisserver/component/DocumentExtractionService.kt b/src/main/kotlin/com/android/trisolarisserver/component/DocumentExtractionService.kt index 88b1647..fd8805b 100644 --- a/src/main/kotlin/com/android/trisolarisserver/component/DocumentExtractionService.kt +++ b/src/main/kotlin/com/android/trisolarisserver/component/DocumentExtractionService.kt @@ -287,7 +287,9 @@ class DocumentExtractionService( } private fun computeDocType(results: Map, 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"]) ||