random -> SEEDRAND (#3274)

This commit is contained in:
Kendall Garner 2024-09-17 21:03:12 +00:00 committed by GitHub
parent 8134edb5d1
commit 1ba390a72a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,7 +172,7 @@ func (r sqlRepository) seededRandomSort() string {
} }
func (r sqlRepository) resetSeededRandom(options []model.QueryOptions) { 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 return
} }