Fix settings scry path to include app name: /settings/all.json

This commit is contained in:
Hunter Miller 2026-01-29 21:05:53 -06:00
parent 9138cb3303
commit a41d83c8f2

View File

@ -228,7 +228,7 @@ export function createSettingsManager(
*/ */
async load(): Promise<TlonSettingsStore> { async load(): Promise<TlonSettingsStore> {
try { try {
const raw = await api.scry("/all.json"); const raw = await api.scry("/settings/all.json");
// Response shape: { all: { [desk]: { [bucket]: { [key]: value } } } } // Response shape: { all: { [desk]: { [bucket]: { [key]: value } } } }
const allData = raw as { all?: Record<string, Record<string, unknown>> }; const allData = raw as { all?: Record<string, Record<string, unknown>> };
const deskData = allData?.all?.[SETTINGS_DESK]; const deskData = allData?.all?.[SETTINGS_DESK];