Fixed bug with amount of results
This commit is contained in:
parent
dbce21cfa6
commit
06d43a67d5
1 changed files with 4 additions and 1 deletions
|
|
@ -33,5 +33,8 @@ func GetPrices(name string) ([]CardPrice, error) {
|
||||||
}
|
}
|
||||||
prices = append(prices, cardPrice)
|
prices = append(prices, cardPrice)
|
||||||
}
|
}
|
||||||
|
if len(prices) > 5 {
|
||||||
return prices[:5], nil
|
return prices[:5], nil
|
||||||
|
}
|
||||||
|
return prices, nil
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue