mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +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 {
|
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()) {
|
return if (duplicates.isEmpty()) {
|
||||||
Pair(legalName.x500Name, null)
|
Pair(legalName.x500Name, null)
|
||||||
|
Loading…
Reference in New Issue
Block a user