random -> SEEDRAND (#3274)

This commit is contained in:
Kendall Garner 2024-09-17 21:03:12 +00:00 committed by Joe Stump
parent 147fd54aac
commit d5b5fc0885
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -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
}