mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix typo
parent
5057f6848f
commit
3ac4af1558
|
@ -35,7 +35,7 @@ class SettingsApi(
|
|||
|
||||
@API("set")
|
||||
@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 options = u.gameOptions ?: AquaGameOptions().also {
|
||||
userRepo.save(u.apply { gameOptions = it })
|
||||
|
|
Loading…
Reference in New Issue