Skip to content

Commit 4f0a8b9

Browse files
committed
tcgplayer: Properly export Product and SKU ids
Using the fields that were added for them instead of using a dictionary.
1 parent cc3057f commit 4f0a8b9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tcgplayer/tcgplayer.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,8 @@ func (tcg *TCGPlayerMarket) processEntry(channel chan<- responseChan, reqs []mar
156156
URL: link,
157157
SellerName: availableMarketNames[i],
158158
Bundle: i == 1,
159-
CustomFields: map[string]string{
160-
"TCGSKUID": fmt.Sprint(req.SkuId),
161-
},
159+
OriginalId: fmt.Sprint(result.ProductId),
160+
InstanceId: fmt.Sprint(result.SkuId),
162161
},
163162
}
164163

@@ -203,6 +202,8 @@ func (tcg *TCGPlayerMarket) processEntry(channel chan<- responseChan, reqs []mar
203202
Quantity: 0,
204203
PriceRatio: priceRatio,
205204
URL: "https://store.tcgplayer.com/buylist",
205+
OriginalId: fmt.Sprint(result.ProductId),
206+
InstanceId: fmt.Sprint(result.SkuId),
206207
},
207208
}
208209

0 commit comments

Comments
 (0)