update names

This commit is contained in:
matst80
2024-11-08 14:12:15 +01:00
parent a2fd5ad62f
commit dfcdf0939f

View File

@@ -59,14 +59,14 @@ func getItemData(sku string) (*messages.AddItem, error) {
priceField, ok := item.GetFields()[4]
if ok {
pricef, ok := priceField.(float64)
priceFloat, ok := priceField.(float64)
if !ok {
price, ok = priceField.(int)
if !ok {
return nil, fmt.Errorf("invalid price type")
}
} else {
price = int(pricef)
price = int(priceFloat)
}
}
}