[F] Fix typo

pull/23/head
Azalea 2024-03-18 09:33:33 -04:00
parent 5057f6848f
commit 3ac4af1558
1 changed files with 1 additions and 1 deletions

View File

@ -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 })