Fix Aadhaar fallback build error
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:
@@ -89,7 +89,7 @@ class DocumentExtractionService(
|
||||
for ((key, question) in aadharFrontQuestions) {
|
||||
results[key] = llamaClient.ask(localImageUrl, question)
|
||||
}
|
||||
ensureAadhaarId(localImageUrl, publicImageUrl, results)
|
||||
ensureAadhaarId(localImageUrl, publicImageUrl, document, results)
|
||||
}
|
||||
}
|
||||
),
|
||||
@@ -274,7 +274,12 @@ class DocumentExtractionService(
|
||||
}
|
||||
}
|
||||
|
||||
private fun ensureAadhaarId(localImageUrl: String, publicImageUrl: String, results: MutableMap<String, String>) {
|
||||
private fun ensureAadhaarId(
|
||||
localImageUrl: String,
|
||||
publicImageUrl: String,
|
||||
document: GuestDocument,
|
||||
results: MutableMap<String, String>
|
||||
) {
|
||||
val key = DocumentPrompts.ID_NUMBER.first
|
||||
val current = cleanedValue(results[key])
|
||||
val normalized = normalizeDigits(current)
|
||||
|
||||
Reference in New Issue
Block a user