✨ Get feed item now will preload feed
This commit is contained in:
@ -11,6 +11,7 @@ func GetTodayFeedRandomly(limit int) ([]models.SubscriptionItem, error) {
|
||||
Where("DATE(created_at) = CURRENT_DATE"). // Created in today
|
||||
Order("RANDOM()").
|
||||
Omit("Content").
|
||||
Preload("Feed").
|
||||
Find(&articles).Error; err != nil {
|
||||
return articles, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user