feat(support-chat): add admin smart chat settings

This commit is contained in:
devops committed 2026-10-14 19:44:24 +00:00
1 parent fa4f1124e6
commit b6735b5a9c
14 files changed
+285 -25

No files matched your search

+2 -1
View File
@@ -247,7 +247,7 @@ export class SettingsService implements OnModuleInit {
});
// 2. Add from settings and unpack object keys
settings.forEach((s) => {
settings.filter((s) => s.key !== "support_chat").forEach((s) => {
const valStr =
typeof s.value === "string" ? s.value : JSON.stringify(s.value);
mergedMap.set(s.key, valStr);
@@ -276,6 +276,7 @@ export class SettingsService implements OnModuleInit {
}
async updateUiText(key: string, value: string) {
if (key === "support_chat") throw new Error("Use support-chat settings API");
const strVal = String(value ?? "");
const allKeysToUpdate = new Set<string>([key]);
const aliases = CANONICAL_ALIASES[key] || [];