[chore] refactor common functions into helper script

This commit is contained in:
2026-03-19 22:18:06 -04:00
parent 023cd87319
commit 171ce294f4
6 changed files with 160 additions and 94 deletions

View File

@@ -1,10 +1,10 @@
import chalk from 'chalk';
import { db, ClosePool } from '../src/db/index.ts';
import * as Indexing from './indexing.ts';
import * as Indexing from './pokemon-helper.ts';
await Indexing.createCardCollection();
await Indexing.createSkuCollection();
//await Indexing.createCardCollection();
//await Indexing.createSkuCollection();
await Indexing.upsertCardCollection(db);
await Indexing.upsertSkuCollection(db);
await ClosePool();