replace productId with cardId in price history chart plotting
This commit is contained in:
@@ -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 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user