mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Fix panic when no performer filter passed to FindPerformers
This commit is contained in:
parent
ce2d779dbc
commit
ea5073fef4
1 changed files with 3 additions and 1 deletions
|
|
@ -33,7 +33,9 @@ func (r *queryResolver) FindPerformers(ctx context.Context, performerFilter *mod
|
||||||
}
|
}
|
||||||
|
|
||||||
// #5682 - convert JSON numbers to float64 or int64
|
// #5682 - convert JSON numbers to float64 or int64
|
||||||
performerFilter.CustomFields = convertCustomFieldCriterionInputJSONNumbers(performerFilter.CustomFields)
|
if performerFilter != nil {
|
||||||
|
performerFilter.CustomFields = convertCustomFieldCriterionInputJSONNumbers(performerFilter.CustomFields)
|
||||||
|
}
|
||||||
|
|
||||||
if err := r.withReadTxn(ctx, func(ctx context.Context) error {
|
if err := r.withReadTxn(ctx, func(ctx context.Context) error {
|
||||||
var performers []*models.Performer
|
var performers []*models.Performer
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue