Handle duplicate cardId on revoke
Some checks failed
build-and-deploy / build-deploy (push) Has been cancelled
Some checks failed
build-and-deploy / build-deploy (push) Has been cancelled
This commit is contained in:
@@ -249,7 +249,8 @@ class IssuedCards(
|
||||
return if (uuid != null) {
|
||||
issuedCardRepo.findByIdAndPropertyId(uuid, propertyId)
|
||||
} else {
|
||||
issuedCardRepo.findByCardIdIgnoreCaseAndPropertyId(trimmed, propertyId)
|
||||
issuedCardRepo.findAllByCardIdIgnoreCaseAndPropertyId(trimmed, propertyId)
|
||||
.maxByOrNull { it.issuedAt }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user