Skip to content

Commit

Permalink
Order results
Browse files Browse the repository at this point in the history
  • Loading branch information
rupinr committed Nov 3, 2024
1 parent be13210 commit 311ca2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ func GetArticlesAfterLastProcessedTime(fromDate time.Time, sites []entity.Site)
db().
Where("created_at > ?", actualFromDate).
Where("site IN ?", dto.MapToUrls(sites)).
Order("site").
Order("created_at").
Find(&articles)
return articles
}
Expand Down

0 comments on commit 311ca2f

Please sign in to comment.