Skip to content

Commit 6123d81

Browse files
committed
fix: Do not convert price to int, it's already an int. Callers must set the right value, don't convert.
1 parent 7c44b53 commit 6123d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/SailthruSDK/Api/Purchases/Purchase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public override void Write(Utf8JsonWriter writer, UpsertPurchaseRequest value, J
187187

188188
writer.WriteStringProperty("id", item.Id, options);
189189
writer.WriteStringProperty("title", item.Title, options);
190-
writer.WriteNumberProperty("price", (int)(item.Price * 100), options);
190+
writer.WriteNumberProperty("price", item.Price, options);
191191
writer.WriteNumberProperty("qty", item.Quantity, options);
192192
writer.WriteStringProperty("url", item.Url, options);
193193

0 commit comments

Comments
 (0)