2026-02-17 12:05:56 -05:00
|
|
|
import chalk from 'chalk';
|
2026-03-11 19:18:45 -04:00
|
|
|
import { db, ClosePool } from '../src/db/index.ts';
|
2026-03-12 08:18:40 -04:00
|
|
|
import * as Indexing from './indexing.ts';
|
2026-02-17 12:05:56 -05:00
|
|
|
|
|
|
|
|
|
2026-03-12 08:18:40 -04:00
|
|
|
await Indexing.createCardCollection();
|
|
|
|
|
await Indexing.createSkuCollection();
|
|
|
|
|
await Indexing.upsertCardCollection(db);
|
|
|
|
|
await Indexing.upsertSkuCollection(db);
|
|
|
|
|
await ClosePool();
|
|
|
|
|
console.log(chalk.green('Pokémon reindex complete.'));
|