Reconcile FurnitureData.json with items_base after import
CI / check (push) Successful in 45s
CI / release (push) Skipped
CI / deploy (push) Successful in 1m16s

After every single import, batch import and batch-regen, cross-check all
items_base rows against the local FurnitureData.json: entries whose
spriteId drifted are corrected to the DB id, and missing entries plus
real id conflicts are reported in the API/SSE response. Entries that are
missing entirely are counted (rebuilding them needs SWF/nitro metadata).
This commit is contained in:
openhands committed 2026-08-18 20:43:41 +02:00
1 parent b4021f6b42
commit b4968a9967
4 files changed
+118 -1

No files matched your search

@@ -10,6 +10,7 @@ import {
appendFurniEntriesBatch,
buildFurniEntry,
readFurniData,
reconcileFurniDataWithItemsBase,
} from "@/lib/services/furni-data";
import {
downloadFile,
@@ -265,6 +266,9 @@ export const POST = withAdmin(
// Backfill any missing nitros and icons into the emulator's Gamedata bundle
const assetsSynced = await syncAssetsToGamedataBundle();
// Verify the furnidata matches the DB ids
const furniReconcile = await reconcileFurniDataWithItemsBase();
send({
type: "regen_complete",
succeeded,
@@ -274,6 +278,9 @@ export const POST = withAdmin(
ownershipFixed: ownership.fixed,
nitrosSynced: assetsSynced.copiedNitros,
iconsSynced: assetsSynced.copiedIcons,
furniDataFixedIds: furniReconcile.fixedIds,
furniDataMissing: furniReconcile.missing,
furniDataConflicts: furniReconcile.conflicts,
duration: Date.now() - startTime,
});