Skip to content

🎧 Your Personal Streaming Service

random -> SEEDRAND (#3274)

Kendall Garner1ba390a72a84
diff --git a/persistence/sql_base_repository.go b/persistence/sql_base_repository.go
index e50f72cb1..d43375a58 100644
--- a/persistence/sql_base_repository.go
+++ b/persistence/sql_base_repository.go
@@ -172,7 +172,7 @@ func (r sqlRepository) seededRandomSort() string {
}
func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) {
- if len(options) == 0 || options[0].Sort != "random" {
+ if len(options) == 0 || !strings.HasPrefix(options[0].Sort, "SEEDEDRAND(") {
return
}