mirror of
https://github.com/corda/corda.git
synced 2024-12-27 08:22:35 +00:00
Add support for TICKET_CREATED to PersistentCertificateRequestStorage (#143)
This commit is contained in:
parent
15e36f3b1a
commit
1a1d5c695c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user