From abd509547780a1eb18dcc7672ed3c1bb24782594 Mon Sep 17 00:00:00 2001 From: Lukas Schaefer Date: Mon, 9 Feb 2026 11:04:24 -0500 Subject: [PATCH] Fix wrong user config error Signed-off-by: Lukas Schaefer --- lib/Service/OpenAiSettingsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/OpenAiSettingsService.php b/lib/Service/OpenAiSettingsService.php index 19003c5e..a2a79d27 100644 --- a/lib/Service/OpenAiSettingsService.php +++ b/lib/Service/OpenAiSettingsService.php @@ -1364,7 +1364,7 @@ public function setUserConfig(string $userId, array $userConfig): void { // That the variable types are correct foreach (array_keys($userConfig) as $key) { if (gettype($userConfig[$key]) !== self::USER_CONFIG_TYPES[$key]) { - throw new Exception('Invalid type for key: ' . $key . '. Expected ' . self::ADMIN_CONFIG_TYPES[$key] . ', got ' . gettype($userConfig[$key])); + throw new Exception('Invalid type for key: ' . $key . '. Expected ' . self::USER_CONFIG_TYPES[$key] . ', got ' . gettype($userConfig[$key])); } }