Call the descriptor sync once at boot, and rename the package

index.js ran syncDescriptorsWithSchema twice on one line, a paste
slip from v1.4. It's idempotent, so the second call only re-read
every table's schema; boot now checks once.

package.json's name was still "figma-make-app" from the original
export; it's "ngu-web-app" now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-26 18:26:12 -05:00
parent 97c1827ca9
commit 3568c7808d
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{ {
"name": "figma-make-app", "name": "ngu-web-app",
"private": true, "private": true,
"version": "1.0.0", "version": "1.0.0",
"type": "module", "type": "module",

View file

@ -36,7 +36,7 @@ const DB_PATH = process.env.DB_PATH ?? "./ngu.db";
const db = await openDatabase(DB_PATH); const db = await openDatabase(DB_PATH);
const version = migrate(db); const version = migrate(db);
syncDescriptorsWithSchema(db, ENTITIES);syncDescriptorsWithSchema(db, ENTITIES); syncDescriptorsWithSchema(db, ENTITIES);
console.log(`db ${DB_PATH} (${db.driverName}, schema v${version})`); console.log(`db ${DB_PATH} (${db.driverName}, schema v${version})`);