From bcd9f613ef068b10b1087fa19ec7f180e5a8427b Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 1 May 2024 04:53:42 -0400 Subject: [PATCH] tcgplayer: Properly export Product and SKU ids Using the fields that were added for them instead of using a dictionary. --- tcgplayer/tcgplayer.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tcgplayer/tcgplayer.go b/tcgplayer/tcgplayer.go index 52d2c648..cae67bdb 100644 --- a/tcgplayer/tcgplayer.go +++ b/tcgplayer/tcgplayer.go @@ -156,9 +156,8 @@ func (tcg *TCGPlayerMarket) processEntry(channel chan<- responseChan, reqs []mar URL: link, SellerName: availableMarketNames[i], Bundle: i == 1, - CustomFields: map[string]string{ - "TCGSKUID": fmt.Sprint(req.SkuId), - }, + OriginalId: fmt.Sprint(result.ProductId), + InstanceId: fmt.Sprint(result.SkuId), }, } @@ -203,6 +202,8 @@ func (tcg *TCGPlayerMarket) processEntry(channel chan<- responseChan, reqs []mar Quantity: 0, PriceRatio: priceRatio, URL: "https://store.tcgplayer.com/buylist", + OriginalId: fmt.Sprint(result.ProductId), + InstanceId: fmt.Sprint(result.SkuId), }, }