mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-12 08:27:26 +08:00
[F] Fix typo
This commit is contained in:
@@ -35,7 +35,7 @@ class SettingsApi(
|
|||||||
|
|
||||||
@API("set")
|
@API("set")
|
||||||
@Doc("Set a field in the game options")
|
@Doc("Set a field in the game options")
|
||||||
fun setField(@RP token: String, @RP key: String, value: String) = us.jwt.auth(token) { u ->
|
fun setField(@RP token: String, @RP key: String, @RP value: String) = us.jwt.auth(token) { u ->
|
||||||
val field = fieldMap[key] ?: error("Field not found")
|
val field = fieldMap[key] ?: error("Field not found")
|
||||||
val options = u.gameOptions ?: AquaGameOptions().also {
|
val options = u.gameOptions ?: AquaGameOptions().also {
|
||||||
userRepo.save(u.apply { gameOptions = it })
|
userRepo.save(u.apply { gameOptions = it })
|
||||||
|
|||||||
Reference in New Issue
Block a user