[-] Drop the codebase (#187)

Co-authored-by: Raymond <protogenraymond@gmail.com>
This commit is contained in:
Azalea
2026-02-09 05:44:42 +08:00
committed by GitHub
parent 6c4c9337e7
commit 50a9a2bdd0
492 changed files with 4754 additions and 17022 deletions

View File

@@ -5,7 +5,7 @@ import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.stereotype.Repository
import java.io.Serializable
import java.time.Instant
import java.util.UUID
import java.util.*
fun getTokenExpiry() = Instant.now().plusSeconds(7 * 86400)

View File

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