Skip to content

Commit

Permalink
random -> SEEDRAND (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 authored Sep 17, 2024
1 parent 8134edb commit 1ba390a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion persistence/sql_base_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 1ba390a

Please sign in to comment.