forked from Cookies_Public/AquaDX
[+] clearMigrateFlag
This commit is contained in:
parent
2e1eb2c879
commit
d7b45e4ce7
@ -62,6 +62,19 @@ class BotController(
|
|||||||
return SUCCESS
|
return SUCCESS
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@API("/clear-migrate-flag")
|
||||||
|
fun clearMigrateFlag(@RP secret: Str, @RP card: Str): Any {
|
||||||
|
secret.checkSecret()
|
||||||
|
|
||||||
|
val oc = (us.cardRepo.findByLuid(card)() ?: (404 - "Card not found")).maybeGhost()
|
||||||
|
|
||||||
|
us.cardRepo.save(oc.apply {
|
||||||
|
status = CardStatus.NORMAL
|
||||||
|
accessTime = utcNow()
|
||||||
|
})
|
||||||
|
return SUCCESS
|
||||||
|
}
|
||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
@PostMapping("/debug-user-profile")
|
@PostMapping("/debug-user-profile")
|
||||||
@Doc("Obtain debug information for a user card", "User card details")
|
@Doc("Obtain debug information for a user card", "User card details")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user