master
Evan Chen 2022-01-04 20:42:18 +08:00
parent 90ecb636f0
commit 5ca8f38e40
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ func ApiListProductOfCat(event *linebot.Event) {
data = strings.TrimPrefix(data, "cat=")
var prods []Product
DB.Find(prods, "id in (select product_id from product_categories where category_name = ?)", data)
DB.Find(&prods, "id in (select product_id from product_categories where category_name = ?)", data)
columns := make([]*linebot.CarouselColumn, len(prods))
for i, prod := range prods {