mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
[F] Fix compile
This commit is contained in:
parent
7553c6a863
commit
45e14e21f1
@ -16,20 +16,13 @@ import kotlin.jvm.optionals.getOrNull
|
||||
@Service
|
||||
class CardService(val cardRepo: CardRepository)
|
||||
{
|
||||
/**
|
||||
* Find a card by External ID
|
||||
* @param extId External ID
|
||||
* @return Optional of a Card
|
||||
*/
|
||||
fun getCardByExtId(extId: String): Optional<Card> = cardRepo.findByExtId(extId.toLong())
|
||||
|
||||
/**
|
||||
* Find a card by External ID
|
||||
*
|
||||
* @param extId External ID
|
||||
* @return Optional of a Card
|
||||
*/
|
||||
fun getCardByExtId(extId: Long?): Optional<Card> = cardRepo.findByExtId(extId)
|
||||
fun getCardByExtId(extId: Long): Optional<Card> = cardRepo.findByExtId(extId)
|
||||
|
||||
/**
|
||||
* Register a new card with access code
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user