From b8a07454dd697e5739c371e4ff7d2d982cc31ec3 Mon Sep 17 00:00:00 2001 From: Jo YoHan Date: Wed, 12 Jun 2024 14:53:31 +0900 Subject: [PATCH] fix: modify the limit on the number of item --- cmd/server/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 6991975..6d23ecc 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -129,7 +129,7 @@ func publish(conf *Config, db *gorm.DB, subscription entity.Subscription) int { "item_link", "CASE WHEN item_thumbnail = '' OR item_thumbnail IS NULL THEN 'https://www.nerdplanet.app/images/feed-thumbnail.png' ELSE item_thumbnail END AS item_thumbnail", "feed_name", - ).Where(strings.Join(where, " AND "), param...).Limit(10).Find(&items).Error; err != nil { + ).Where(strings.Join(where, " AND "), param...).Limit(5).Find(&items).Error; err != nil { slog.Error(err.Error(), "error", err) return 0 }