replace productId with cardId in price history chart plotting

This commit is contained in:
Zach Harding
2026-06-04 15:18:27 -04:00
parent 96af72c7f4
commit c0055ed713

View File

@@ -84,7 +84,7 @@ for (const price of card?.prices ?? []) {
// ── Price history for chart ─────────────────────────────────────────────── // ── Price history for chart ───────────────────────────────────────────────
const cardSkus = card?.prices?.length const cardSkus = card?.prices?.length
? await db.select().from(skus).where(eq(skus.productId, card.productId)) ? await db.select().from(skus).where(eq(skus.cardId, card.cardId))
: []; : [];
const skuIds = cardSkus.map(s => s.skuId); const skuIds = cardSkus.map(s => s.skuId);
@@ -547,6 +547,8 @@ const altSearchUrl = (card: any) => {
</div> </div>
</div> </div>
</div> </div>
<!-- External links column --> <!-- External links column -->