Skip to content

Commit

Permalink
Fix panic when no performer filter passed to FindPerformers
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Mar 3, 2025
1 parent ce2d779 commit ea5073f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/api/resolver_query_find_performer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ func (r *queryResolver) FindPerformers(ctx context.Context, performerFilter *mod
}

// #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 {
var performers []*models.Performer
Expand Down

0 comments on commit ea5073f

Please sign in to comment.