[feat] dashboard shows inventory

This commit is contained in:
2026-04-07 22:34:31 -04:00
parent cb829e1922
commit 71c167308d
8 changed files with 219 additions and 506 deletions

View File

@@ -3,12 +3,12 @@ import { db, ClosePool } from '../src/db/index.ts';
import * as Indexing from './pokemon-helper.ts';
//await Indexing.createCardCollection();
//await Indexing.createSkuCollection();
// await Indexing.createCardCollection();
await Indexing.createSkuCollection();
await Indexing.createInventoryCollection();
//await Indexing.upsertCardCollection(db);
//await Indexing.upsertSkuCollection(db);
// await Indexing.upsertCardCollection(db);
await Indexing.upsertSkuCollection(db);
await Indexing.upsertInventoryCollection(db);
await ClosePool();
console.log(chalk.green('Pokémon reindex complete.'));