Update Aadhaar matches with verified number
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 34s
This commit is contained in:
@@ -419,6 +419,14 @@ class DocumentExtractionService(
|
|||||||
verified.id?.let {
|
verified.id?.let {
|
||||||
changed = setIfChanged(results, "aadhaarMatchWithDocId", it.toString()) || changed
|
changed = setIfChanged(results, "aadhaarMatchWithDocId", it.toString()) || changed
|
||||||
}
|
}
|
||||||
|
if (match.similar) {
|
||||||
|
val formatted = formatAadhaar(verified.digits)
|
||||||
|
changed = setIfChanged(results, DocumentPrompts.ID_NUMBER.first, formatted) || changed
|
||||||
|
changed = setIfChanged(results, "aadhaarVerified", "YES") || changed
|
||||||
|
changed = setIfChanged(results, "hasAadhar", "YES") || changed
|
||||||
|
val recomputed = computeDocType(results, true)
|
||||||
|
changed = setIfChanged(results, "docType", recomputed) || changed
|
||||||
|
}
|
||||||
return changed
|
return changed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user