correct sort by market price by adding a back a roll-up market price from skus to product ID during sync

This commit is contained in:
Zach Harding
2026-03-25 14:31:46 -04:00
parent 3f9b1accda
commit 53cdddb183
3 changed files with 11 additions and 2 deletions

View File

@@ -154,6 +154,7 @@ const updateLatestSales = async (updatedCards: Set<number>) => {
const start = Date.now();
const updatedCards = await syncPrices();
await helper.upsertSkuCollection(db);
await helper.upsertCardCollection(db);
//console.log(updatedCards);
//console.log(updatedCards.size);
//await updateLatestSales(updatedCards);