Add support for TICKET_CREATED to PersistentCertificateRequestStorage (#143)

This commit is contained in:
Alberto Arri 2017-12-05 14:04:12 +00:00 committed by GitHub
parent 15e36f3b1a
commit 1a1d5c695c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ class PersistentCertificateRequestStorage(private val database: CordaPersistence
}
}
val duplicates = session.createQuery(query).resultList.filter {
it.status == RequestStatus.NEW || it.status == RequestStatus.APPROVED || it.certificateData?.certificateStatus == CertificateStatus.VALID
it.status in setOf(RequestStatus.NEW, RequestStatus.TICKET_CREATED, RequestStatus.APPROVED) || it.certificateData?.certificateStatus == CertificateStatus.VALID
}
return if (duplicates.isEmpty()) {
Pair(legalName.x500Name, null)