[F] Not extId

pull/17/head
Azalea 2024-03-01 00:40:57 -05:00
parent 63cf1f5fa1
commit ed1b7f477b
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class AquaUserServices(
fun <T> cardByName(username: Str, callback: (Card) -> T) =
if (username.startsWith("card")) username.substring(4).toLongOrNull()
?.let { cardRepo.findByExtId(it).getOrNull() }
?.let { cardRepo.findById(it).getOrNull() }
?.let(callback) ?: (404 - "Card not found")
else byName(username) { callback(it.ghostCard) }