Files
pokemon/scripts/reindex.ts

12 lines
367 B
TypeScript
Raw Normal View History

import chalk from 'chalk';
import { db, ClosePool } from '../src/db/index.ts';
import * as Indexing from './pokemon-helper.ts';
//await Indexing.createCardCollection();
//await Indexing.createSkuCollection();
2026-03-12 08:18:40 -04:00
await Indexing.upsertCardCollection(db);
await Indexing.upsertSkuCollection(db);
await ClosePool();
console.log(chalk.green('Pokémon reindex complete.'));