From 7ad78db0ea9b225040e02f735be7e847ec8bc5cc Mon Sep 17 00:00:00 2001 From: openhands Date: Thu, 20 Aug 2026 16:10:14 +0200 Subject: [PATCH] Fix: Ensure Imported Furniture catalog page is created during import The getOrCreateImportedParentPage() function was skipping database checks due to an early return cache check. This caused the 'imported_furni' catalog page to not be created when missing, preventing imported furniture from appearing in the catalog. Removed the cache early return so the function always queries the DB and creates the page if needed. --- src/lib/services/furni-import.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib/services/furni-import.ts b/src/lib/services/furni-import.ts index 17516645..1aeb785a 100644 --- a/src/lib/services/furni-import.ts +++ b/src/lib/services/furni-import.ts @@ -166,8 +166,6 @@ async function dedupeCatalogPage( * Caches the page ID in-memory for the process lifetime to avoid redundant DB reads * during batch imports */ export async function getOrCreateImportedParentPage(): Promise { - if (parentIdCache !== null) return parentIdCache; - const [existing] = await db .select({ id: CatalogPages.id }) .from(CatalogPages)