Skip to content

Commit

Permalink
tcgplayer: Properly export Product and SKU ids
Browse files Browse the repository at this point in the history
Using the fields that were added for them instead of using a dictionary.
  • Loading branch information
kodawah committed May 1, 2024
1 parent 0805e52 commit bcd9f61
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tcgplayer/tcgplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
}

Expand Down Expand Up @@ -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),
},
}

Expand Down

0 comments on commit bcd9f61

Please sign in to comment.