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
+1 -1
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
}