Skip to content

Commit

Permalink
[perf] 推荐时间范围调整至一个月内
Browse files Browse the repository at this point in the history
  • Loading branch information
kyrie committed Jan 28, 2023
1 parent fafaad5 commit 72edd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/api/service/bilbil_picture.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (service *BilbilPicture) Recommend(ctx context.Context, req idl.BilibiliPic
tx := service.db.WithContext(ctx)
picRepository := repository.NewBilibiliPicture(tx)
now := time.Now()
list, err := picRepository.Recommend(now.Add(-(3 * 24 * time.Hour)), now, req.Page, picRecommendDefaultSize, req.TopicID)
list, err := picRepository.Recommend(now.Add(-(30 * 24 * time.Hour)), now, req.Page, picRecommendDefaultSize, req.TopicID)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 72edd3f

Please sign in to comment.