Skip to content

Commit

Permalink
fix: modify the limit on the number of item
Browse files Browse the repository at this point in the history
  • Loading branch information
slowhigh committed Jun 12, 2024
1 parent 078776d commit b8a0745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit b8a0745

Please sign in to comment.