forked from Cookies_Github_mirror/AquaDX
[M] Rename: Bind -> Link
This commit is contained in:
@@ -42,8 +42,8 @@ class CardController(
|
||||
* @param cardId Card ID
|
||||
* @param migrate Things to migrate, stored as a comma-separated list of game IDs (e.g. "maimai2,chusan")
|
||||
*/
|
||||
@API("/bind")
|
||||
suspend fun bind(@RP token: Str, @RP cardId: Str, @RP migrate: Str) = jwt.auth(token) { u ->
|
||||
@API("/link")
|
||||
suspend fun link(@RP token: Str, @RP cardId: Str, @RP migrate: Str) = jwt.auth(token) { u ->
|
||||
// Check if the user's card limit is reached
|
||||
if (u.cards.size >= props.linkCardLimit) 400 - "Card limit reached"
|
||||
|
||||
|
||||
@@ -48,5 +48,5 @@ class Card(
|
||||
private val serialVersionUID = 1L
|
||||
}
|
||||
|
||||
val isBound get() = aquaUser != null
|
||||
val isLinked get() = aquaUser != null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user