Skip to content

Commit

Permalink
Notify slack for failed Jumio cases only
Browse files Browse the repository at this point in the history
  • Loading branch information
vihangpatil committed Nov 21, 2019
1 parent 17fc41a commit c68cfed
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,6 @@ object Neo4jStoreSingleton : GraphStore {
customerId = customer.id,
data = extendedStatus
)
logger.info(NOTIFY_OPS_MARKER, "Jumio verification succeeded for ${customer.contactEmail} Info: $extendedStatus")
setKycStatus(
customer = customer,
regionCode = updatedScanInformation.countryCode.toLowerCase(),
Expand All @@ -1829,7 +1828,9 @@ object Neo4jStoreSingleton : GraphStore {
data = extendedStatus
)
}
logger.info(NOTIFY_OPS_MARKER, "Jumio verification failed for ${customer.contactEmail} Info: $extendedStatus")
if(updatedScanInformation.scanResult?.verificationStatus != "NO_ID_UPLOADED") {
logger.info(NOTIFY_OPS_MARKER, "Jumio verification failed for ${customer.contactEmail} Info: $extendedStatus")
}
setKycStatus(
customer = customer,
regionCode = updatedScanInformation.countryCode.toLowerCase(),
Expand Down

0 comments on commit c68cfed

Please sign in to comment.