Add missing performer sort options to whitelist (#5129)

Adds career length, measurements and weight.
This commit is contained in:
WithoutPants 2024-08-13 16:13:15 +10:00 committed by GitHub
parent ecb53cee55
commit a94bf29b34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -710,6 +710,7 @@ func (qb *PerformerStore) sortByLastPlayedAt(direction string) string {
var performerSortOptions = sortOptions{
"birthdate",
"career_length",
"created_at",
"galleries_count",
"height",
@ -717,6 +718,7 @@ var performerSortOptions = sortOptions{
"images_count",
"last_o_at",
"last_played_at",
"measurements",
"name",
"o_counter",
"penis_length",
@ -726,6 +728,7 @@ var performerSortOptions = sortOptions{
"scenes_count",
"tag_count",
"updated_at",
"weight",
}
func (qb *PerformerStore) getPerformerSort(findFilter *models.FindFilterType) (string, error) {

View File

@ -30,6 +30,9 @@ const sortByOptions = [
"play_count",
"last_played_at",
"last_o_at",
"career_length",
"weight",
"measurements",
]
.map(ListFilterOptions.createSortBy)
.concat([