mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
fix album/media file random sort (#3089)
This commit is contained in:
parent
f267f55713
commit
88eac6d7f3
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ func (r sqlRepository) applyFilters(sq SelectBuilder, options ...model.QueryOpti
|
|||
|
||||
func (r sqlRepository) seededRandomSort() string {
|
||||
u, _ := request.UserFrom(r.ctx)
|
||||
return fmt.Sprintf("SEEDEDRAND('%s', id)", r.tableName+u.ID)
|
||||
return fmt.Sprintf("SEEDEDRAND('%s', %s.id)", r.tableName+u.ID, r.tableName)
|
||||
}
|
||||
|
||||
func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue