mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
parent
5da28a0918
commit
9fbd592adc
1 changed files with 2 additions and 1 deletions
|
@ -175,7 +175,8 @@ func (repo *ReleaseRepo) findReleases(ctx context.Context, tx *Tx, params domain
|
|||
subQueryBuilder := repo.db.squirrel.
|
||||
Select("r.id").
|
||||
Distinct().
|
||||
From("release r")
|
||||
From("release r").
|
||||
OrderBy("r.id DESC")
|
||||
|
||||
if params.Limit > 0 {
|
||||
subQueryBuilder = subQueryBuilder.Limit(params.Limit)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue