forked from Cookies_Github_mirror/AquaDX
[F] Fix typo
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user